[tests] Change the path type to OsString for compatibility

This commit is contained in:
Ming-Hung Tsai
2021-07-20 15:07:12 +08:00
parent b92151d527
commit 66b49e6f3d
12 changed files with 61 additions and 30 deletions

View File

@@ -53,7 +53,8 @@ pub fn test_missing_input_arg<'a, P>() -> Result<()>
where
P: InputProgram<'a>,
{
let stderr = run_fail(P::path(), &[])?;
let args: [&str; 0] = [];
let stderr = run_fail(P::path(), &args)?;
assert!(stderr.contains(P::missing_input_arg()));
Ok(())
}