mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-20 10:55:14 +00:00
Revert "Check for the correct exit code on cfail tests. Closes #938"
This reverts commit c42401ebbc
.
This commit is contained in:
parent
6eabe6f3f4
commit
7bc282a561
@ -41,7 +41,6 @@ fn run_cfail_test(cx: cx, props: test_props, testfile: str) {
|
||||
fatal_procres("compile-fail test compiled successfully!", procres);
|
||||
}
|
||||
|
||||
check_correct_failure_status(procres);
|
||||
check_error_patterns(props, testfile, procres);
|
||||
}
|
||||
|
||||
@ -58,19 +57,16 @@ fn run_rfail_test(cx: cx, props: test_props, testfile: str) {
|
||||
fatal_procres("run-fail test isn't valgrind-clean!", procres);
|
||||
}
|
||||
|
||||
check_correct_failure_status(procres);
|
||||
check_error_patterns(props, testfile, procres);
|
||||
}
|
||||
|
||||
fn check_correct_failure_status(procres: procres) {
|
||||
// The value the rust runtime returns on failure
|
||||
const rust_err: int = 101;
|
||||
if procres.status != rust_err {
|
||||
fatal_procres(
|
||||
#fmt("failure produced the wrong error code: %d",
|
||||
#fmt("run-fail test produced the wrong error code: %d",
|
||||
procres.status),
|
||||
procres);
|
||||
}
|
||||
|
||||
check_error_patterns(props, testfile, procres);
|
||||
}
|
||||
|
||||
fn run_rpass_test(cx: cx, props: test_props, testfile: str) {
|
||||
|
Loading…
Reference in New Issue
Block a user