Skip to content

Commit a6c57b9

Browse files
committed
Fix for when running test on Windows
Windows says "Error: Os { code: 2, kind: NotFound, message: \"The system cannot find the file specified.\" }\n" while Linux and Mac has: "Error: Os { code: 2, kind: NotFound, message: \"No such file or directory\" }\n"
1 parent 620a1f2 commit a6c57b9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/tests/script.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ fn script_with_same_name_as_dependency() {
148148
#[test]
149149
fn script_without_main_question_mark() {
150150
let out = rust_script!("tests/data/question-mark").unwrap();
151-
assert_eq!(
152-
out.stderr,
153-
"Error: Os { code: 2, kind: NotFound, message: \"No such file or directory\" }\n"
154-
);
151+
assert!(out
152+
.stderr
153+
.starts_with("Error: Os { code: 2, kind: NotFound, message:"));
155154
}

0 commit comments

Comments
 (0)