Skip to content

Commit a062f59

Browse files
committed
compiletest: crashes: turn off backtraces for faster tests
1 parent 3289fff commit a062f59

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/tools/compiletest/src/header.rs

+10
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,16 @@ impl TestProps {
581581
self.incremental = true;
582582
}
583583

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+
584594
for key in &["RUST_TEST_NOCAPTURE", "RUST_TEST_THREADS"] {
585595
if let Ok(val) = env::var(key) {
586596
if self.exec_env.iter().find(|&&(ref x, _)| x == key).is_none() {

0 commit comments

Comments
 (0)