We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3289fff commit a062f59Copy full SHA for a062f59
src/tools/compiletest/src/header.rs
@@ -581,6 +581,16 @@ impl TestProps {
581
self.incremental = true;
582
}
583
584
+ if config.mode == Mode::Crashes {
585
+ // we don't want to pollute anything with backtrace-files
586
+ // also turn off backtraces in order to save some execution
587
+ // time on the tests; we only need to know IF it crashes
588
+ self.rustc_env = vec![
589
+ ("RUST_BACKTRACE".to_string(), "0".to_string()),
590
+ ("RUSTC_ICE".to_string(), "0".to_string()),
591
+ ];
592
+ }
593
+
594
for key in &["RUST_TEST_NOCAPTURE", "RUST_TEST_THREADS"] {
595
if let Ok(val) = env::var(key) {
596
if self.exec_env.iter().find(|&&(ref x, _)| x == key).is_none() {
0 commit comments