Fixing rustfmt and another go at fixing echo for AppVeyor

This commit is contained in:
SpatulaNinja 2017-10-19 23:11:29 -05:00
parent 3a7fe6e140
commit 3c0e254156
1 changed files with 7 additions and 5 deletions

View File

@ -537,18 +537,20 @@ fn test_exec() {
let te = TestEnv::new();
// Test a simple echo before result
te.assert_output(&["--exec", "echo found", "d.foo"], "found one/two/three/d.foo");
te.assert_output(
&["--exec", "echo found {}", "d.foo"],
"found one/two/three/d.foo",
);
#[cfg(windows)]
// Test executing 'fc' (File Compare) with the found result and itself.
#[cfg(windows)]
te.assert_output(
&["--exec", "fc {} {}", "a.foo"],
"
Comparing files a.foo and A.FOO
FC: no differences encountered",
);
#[cfg(unix)]
// Test executing 'diff' with the found result and itself.
te.assert_output(&["--exec", "diff {} {}", "a.foo"],"");
#[cfg(unix)] te.assert_output(&["--exec", "diff {} {}", "a.foo"],"");
}