diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-05-10 16:53:48 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-05-10 16:53:48 -0400 |
| commit | a5ba75283e279205dd96d402dfde42041ac53fb4 (patch) | |
| tree | c5a62c06834ea368dfc6192ab66c5e765274ea08 | |
| parent | 7c59a81a5fcbaaca311f744cd7c68d99bfbb05d3 (diff) | |
Fail if I/O error occurs during testing
| -rw-r--r-- | src/tools/compiletest/src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index 3a8a5491255..93a414ff6b9 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -347,7 +347,10 @@ pub fn run_tests(config: Config) { Ok(true) => {} Ok(false) => panic!("Some tests failed"), Err(e) => { - println!("I/O failure during tests: {:?}", e); + // We don't know if tests passed or not, but if there was an error + // during testing we don't want to just suceeed (we may not have + // tested something), so fail. + panic!("I/O failure during tests: {:?}", e); } } } |
