]> git.lizzy.rs Git - rust.git/commitdiff
debuginfo: Set RUST_TEST_TASKS to 1 again for LLDB tests
authorMichael Woerister <michaelwoerister@posteo>
Sun, 26 Oct 2014 09:57:29 +0000 (10:57 +0100)
committerMichael Woerister <michaelwoerister@posteo>
Sun, 26 Oct 2014 17:09:06 +0000 (18:09 +0100)
src/compiletest/compiletest.rs

index 7af25de1f6f97cd36bf429d72f6538d01be8189c..018d77b67cdd6b8d95bfc608ace968a2b7455590 100644 (file)
@@ -25,7 +25,7 @@
 use std::from_str::FromStr;
 use getopts::{optopt, optflag, reqopt};
 use common::Config;
-use common::{Pretty, DebugInfoGdb, Codegen};
+use common::{Pretty, DebugInfoGdb, DebugInfoLldb, Codegen};
 use util::logv;
 use regex::Regex;
 
@@ -244,6 +244,16 @@ pub fn run_tests(config: &Config) {
         os::setenv("RUST_TEST_TASKS","1");
     }
 
+    match config.mode {
+        DebugInfoLldb => {
+            // Some older versions of LLDB seem to have problems with multiple
+            // instances running in parallel, so only run one test task at a
+            // time.
+            os::setenv("RUST_TEST_TASKS", "1");
+        }
+        _ => { /* proceed */ }
+    }
+
     let opts = test_opts(config);
     let tests = make_tests(config);
     // sadly osx needs some file descriptor limits raised for running tests in