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

View file

@ -537,10 +537,13 @@ fn test_exec() {
let te = TestEnv::new(); let te = TestEnv::new();
// Test a simple echo before result // 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. // Test executing 'fc' (File Compare) with the found result and itself.
#[cfg(windows)]
te.assert_output( te.assert_output(
&["--exec", "fc {} {}", "a.foo"], &["--exec", "fc {} {}", "a.foo"],
" "
@ -548,7 +551,6 @@ fn test_exec() {
FC: no differences encountered", FC: no differences encountered",
); );
#[cfg(unix)]
// Test executing 'diff' with the found result and itself. // 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"],"");
} }