Skip to content

Commit 9021f24

Browse files
Mark-SimulacrumElinvynia
authored andcommitted
Fail if I/O error occurs during testing
(cherry picked from commit a5ba752)
1 parent eb09068 commit 9021f24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/compiletest/src/main.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@ pub fn run_tests(config: Config) {
347347
Ok(true) => {}
348348
Ok(false) => panic!("Some tests failed"),
349349
Err(e) => {
350-
println!("I/O failure during tests: {:?}", e);
350+
// We don't know if tests passed or not, but if there was an error
351+
// during testing we don't want to just suceeed (we may not have
352+
// tested something), so fail.
353+
panic!("I/O failure during tests: {:?}", e);
351354
}
352355
}
353356
}

0 commit comments

Comments
 (0)