Actually fail the process when compiletest has a test failure
We previously failed by coincidence because of memory leaks.
This commit is contained in:
parent
69d6e0d208
commit
fda196769a
1 changed files with 2 additions and 1 deletions
|
@ -110,8 +110,9 @@ fn run_tests(config: &config) {
|
|||
let opts = test_opts(config);
|
||||
let cx = {config: config, procsrv: procsrv::mk()};
|
||||
let tests = make_tests(cx);
|
||||
test::run_tests_console_(opts, tests.tests, tests.to_task);
|
||||
let res = test::run_tests_console_(opts, tests.tests, tests.to_task);
|
||||
procsrv::close(cx.procsrv);
|
||||
if !res { fail "Some tests failed"; }
|
||||
}
|
||||
|
||||
fn test_opts(config: &config) -> test::test_opts {
|
||||
|
|
Loading…
Reference in a new issue