diff options
| author | Quentin Boyer <qbsecond@gmail.com> | 2019-11-07 21:53:00 +0100 |
|---|---|---|
| committer | Quentin Boyer <qbsecond@gmail.com> | 2019-11-07 21:53:00 +0100 |
| commit | 5852a3f4e9f07d7cb2cc155fbb071ce97c377a6a (patch) | |
| tree | 80e13897690a74cdad95dfca9715c84e7a81bc1a /src | |
| parent | 9305e606e15d1ef514206ae8fc13b84eb84b42ab (diff) | |
| download | rust-5852a3f4e9f07d7cb2cc155fbb071ce97c377a6a.tar.gz rust-5852a3f4e9f07d7cb2cc155fbb071ce97c377a6a.zip | |
putting the failure_status code in header.rs
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/compiletest/src/header.rs | 3 | ||||
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs index f63b5997a4a..0212ff45eec 100644 --- a/src/tools/compiletest/src/header.rs +++ b/src/tools/compiletest/src/header.rs @@ -585,6 +585,9 @@ impl TestProps { _ => 1, }; } + if self.should_ice { + self.failure_status = 101; + } for key in &["RUST_TEST_NOCAPTURE", "RUST_TEST_THREADS"] { if let Ok(val) = env::var(key) { diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 68812bd94eb..fd250d6c7a6 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -434,12 +434,7 @@ impl<'test> TestCx<'test> { } fn check_correct_failure_status(&self, proc_res: &ProcRes) { - let expected_status = - if self.props.should_ice { - Some(101) - } else { - Some(self.props.failure_status) - }; + let expected_status = Some(self.props.failure_status); let received_status = proc_res.status.code(); if expected_status != received_status { |
