Test that processes that are supposed to fail return a non-zero status

This commit is contained in:
Brian Anderson 2011-08-24 13:24:03 -07:00
parent b07968dda4
commit 5b5689d4dd

View File

@ -180,6 +180,10 @@ fn check_error_patterns(props: &test_props, testfile: &str,
fatal("no error pattern specified in " + testfile);
}
if procres.status == 0 {
fatal("process did not return an error status");
}
let next_err_idx = 0u;
let next_err_pat = props.error_patterns[next_err_idx];
for line: str in str::split(procres.stdout, '\n' as u8) {