Actually fail the process when compiletest has a test failure

We previously failed by coincidence because of memory leaks.
This commit is contained in:
Brian Anderson 2011-09-11 21:13:59 -07:00
parent 69d6e0d208
commit fda196769a

View file

@ -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 {