Skip to content

Commit ca0446d

Browse files
debuginfo: Set RUST_TEST_TASKS to 1 again for LLDB tests
1 parent cb943b7 commit ca0446d

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)