Raise the file descriptor limits when running compiletest
We already do this for libstd tests automatically, and compiletest runs into the same problems where when forking lots of processes lots of file descriptors are created. On OSX we can use specific syscalls to raise the limits, in this situation, though. Closes #8904
This commit is contained in:
parent
fc9fa2cb6c
commit
aeb2f88a48
2 changed files with 13 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
|||
extern mod extra;
|
||||
|
||||
use std::os;
|
||||
use std::rt;
|
||||
use std::f64;
|
||||
|
||||
use extra::getopts;
|
||||
|
@ -223,6 +224,10 @@ pub fn mode_str(mode: mode) -> ~str {
|
|||
pub fn run_tests(config: &config) {
|
||||
let opts = test_opts(config);
|
||||
let tests = make_tests(config);
|
||||
// sadly osx needs some file descriptor limits raised for running tests in
|
||||
// parallel (especially when we have lots and lots of child processes).
|
||||
// For context, see #8904
|
||||
rt::test::prepare_for_lots_of_tests();
|
||||
let res = test::run_tests_console(&opts, tests);
|
||||
if !res { fail!("Some tests failed"); }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue