We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3569d2 commit e3bc713Copy full SHA for e3bc713
src/tools/compiletest/src/header.rs
@@ -392,18 +392,20 @@ impl TestProps {
392
393
if let Some(code) = config.parse_failure_status(ln) {
394
self.failure_status = code;
395
- } else {
396
- self.failure_status = match config.mode {
397
- Mode::RunFail => 101,
398
- _ => 1,
399
- };
400
}
401
402
if !self.run_rustfix {
403
self.run_rustfix = config.parse_run_rustfix(ln);
404
405
});
406
+ if self.failure_status == -1 {
+ self.failure_status = match config.mode {
+ Mode::RunFail => 101,
+ _ => 1,
+ };
407
+ }
408
+
409
for key in &["RUST_TEST_NOCAPTURE", "RUST_TEST_THREADS"] {
410
if let Ok(val) = env::var(key) {
411
if self.exec_env.iter().find(|&&(ref x, _)| x == key).is_none() {
0 commit comments