diff --git a/tests/test_flags.rs b/tests/test_flags.rs index b791fa2..c9b7e93 100644 --- a/tests/test_flags.rs +++ b/tests/test_flags.rs @@ -9,11 +9,15 @@ use std::str; */ fn build_command>(command_args: Vec) -> String { - let mut a = &mut Command::cargo_bin("dust").unwrap(); + let mut cmd = &mut Command::cargo_bin("dust").unwrap(); for p in command_args { - a = a.arg(p); + cmd = cmd.arg(p); } - str::from_utf8(&a.unwrap().stdout).unwrap().into() + let finished = &cmd.unwrap(); + let stderr = str::from_utf8(&finished.stderr).unwrap(); + assert_eq!(stderr, ""); + + str::from_utf8(&finished.stdout).unwrap().into() } // We can at least test the file names are there