Skip to content

Commit a821295

Browse files
committed
2025-10-13: find_cmd_tests.rs
1 parent ad03fab commit a821295

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

tests/find_cmd_tests.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,12 @@ fn fix_up_regex_slashes(re: &str) -> String {
4343

4444
#[test]
4545
fn no_args() {
46-
new_ucmd!()
47-
//.arg("--invalid-argument")
46+
let ts = TestScenario::new("find");
47+
ts.cmd(env!("CARGO_BIN_EXE_find"))
4848
.current_dir(env!("CARGO_MANIFEST_DIR"))
49-
.fails_with_code(1)
50-
.no_stdout();
51-
// let ts = TestScenario::new("find");
52-
// ts.cmd(env!("CARGO_BIN_EXE_find"))
53-
// .current_dir(env!("CARGO_MANIFEST_DIR"))
54-
// .succeeds()
55-
// .no_stderr()
56-
// .stdout_contains("test_data");
49+
.succeeds()
50+
.no_stderr()
51+
.stdout_contains("test_data");
5752
}
5853

5954
#[serial(working_dir)]

0 commit comments

Comments
 (0)