]> git.lizzy.rs Git - rust.git/commitdiff
debuginfo: Make sure that only one LLDB test task is run at a time.
authorMichael Woerister <michaelwoerister@posteo>
Wed, 9 Jul 2014 14:22:39 +0000 (16:22 +0200)
committerMichael Woerister <michaelwoerister@posteo>
Wed, 16 Jul 2014 07:46:49 +0000 (09:46 +0200)
Some older versions of LLDB have problems with multiple instances running in parallel. This commit makes sure we don't do that.

src/compiletest/compiletest.rs

index 4de66d8746fbea72f45206832e1ef93c56a2ba9e..07e331c2a39639a72123dee67ad4298cac9134dc 100644 (file)
@@ -30,7 +30,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;
 
@@ -241,6 +241,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