Skip to content

Commit a0efafb

Browse files
committed
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
2 parents a93e9c2 + ca0446d commit a0efafb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/compiletest/compiletest.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use std::io::fs;
2525
use std::from_str::FromStr;
2626
use getopts::{optopt, optflag, reqopt};
2727
use common::Config;
28-
use common::{Pretty, DebugInfoGdb, Codegen};
28+
use common::{Pretty, DebugInfoGdb, DebugInfoLldb, Codegen};
2929
use util::logv;
3030
use regex::Regex;
3131

@@ -244,6 +244,16 @@ pub fn run_tests(config: &Config) {
244244
os::setenv("RUST_TEST_TASKS","1");
245245
}
246246

247+
match config.mode {
248+
DebugInfoLldb => {
249+
// Some older versions of LLDB seem to have problems with multiple
250+
// instances running in parallel, so only run one test task at a
251+
// time.
252+
os::setenv("RUST_TEST_TASKS", "1");
253+
}
254+
_ => { /* proceed */ }
255+
}
256+
247257
let opts = test_opts(config);
248258
let tests = make_tests(config);
249259
// sadly osx needs some file descriptor limits raised for running tests in

0 commit comments

Comments
 (0)