diff --git a/tests/testsuite/cargo_command.rs b/tests/testsuite/cargo_command.rs index 8e0b6e19f..e5adabe4f 100644 --- a/tests/testsuite/cargo_command.rs +++ b/tests/testsuite/cargo_command.rs @@ -264,13 +264,8 @@ fn cargo_subcommand_args() { cargo_process("foo bar -v --help") .env("PATH", &path) - .with_stdout( - if cfg!(windows) { // weird edge-case w/ CWD & (windows vs unix) - format!(r#"[{:?}, "foo", "bar", "-v", "--help"]"#, cargo_foo_bin) - } else { - r#"["[CWD]/cargo-foo/target/debug/cargo-foo", "foo", "bar", "-v", "--help"]"#.to_string() - } - ).run(); + .with_stdout(r#"["[CWD]/cargo-foo/target/debug/cargo-foo", "foo", "bar", "-v", "--help"]"#) + .run(); } #[test]