diff options
| author | bors <bors@rust-lang.org> | 2014-10-27 07:52:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-10-27 07:52:39 +0000 |
| commit | a0efafbd85e2e0965746adba7e899ce904d324dc (patch) | |
| tree | 7d9b6046d66eaa1f330e5410c00a6d9572685d49 /src | |
| parent | a93e9c20f2a79eacad21592d0eb58e1a89648629 (diff) | |
| parent | ca0446d10795691e3fc206794ac7fbd441442b34 (diff) | |
| download | rust-a0efafbd85e2e0965746adba7e899ce904d324dc.tar.gz rust-a0efafbd85e2e0965746adba7e899ce904d324dc.zip | |
auto merge of #18348 : michaelwoerister/rust/lldb-test-versioning, r=alexcrichton
Let's try if not running LLDB tests in parallel solves the sporadic deadlocks we've seen since enabling the LLDB test suite. Running the tests in parallel has lead to unstable behaviour in the past (with LLDB versions below 310.x.x). Maybe our new minimum LLDB version isn't quite up to it either. cc @alexcrichton
Diffstat (limited to 'src')
| -rw-r--r-- | src/compiletest/compiletest.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 7af25de1f6f..018d77b67cd 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -25,7 +25,7 @@ use std::io::fs; 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 |
