diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index e4d9836c56298..f04e308d62fbc 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -261,7 +261,24 @@ pub fn run_tests(config: &Config) { // android debug-info test uses remote debugger // so, we test 1 thread at once. // also trying to isolate problems with adb_run_wrapper.sh ilooping - env::set_var("RUST_TEST_THREADS","1"); + match config.mode { + // These tests don't actually run code or don't run for android, so + // we don't need to limit ourselves there + Mode::Ui | + Mode::CompileFail | + Mode::ParseFail | + Mode::RunMake | + Mode::Codegen | + Mode::CodegenUnits | + Mode::Pretty | + Mode::Rustdoc | + Mode::Incremental => {} + + _ => { + env::set_var("RUST_TEST_THREADS", "1"); + } + + } } match config.mode {