Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/compiletest/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ fn run_cfail_test(config: &config, props: &TestProps, testfile: &Path) {
} else {
check_error_patterns(props, testfile, &proc_res);
}
check_no_compiler_crash(&proc_res);
}

fn run_rfail_test(config: &config, props: &TestProps, testfile: &Path) {
Expand Down Expand Up @@ -505,6 +506,15 @@ fn check_error_patterns(props: &TestProps,
}
}

fn check_no_compiler_crash(proc_res: &ProcRes) {
for line in proc_res.stderr.lines() {
if line.starts_with("error: internal compiler error:") {
fatal_ProcRes("compiler encountered internal error".to_owned(),
proc_res);
}
}
}

fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
testfile: &Path,
proc_res: &ProcRes) {
Expand Down
3 changes: 3 additions & 0 deletions src/test/compile-fail/inherit-struct8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// ignore-test FIXME: #13991


// Test struct inheritance.
#![feature(struct_inherit)]

Expand Down
2 changes: 2 additions & 0 deletions src/test/compile-fail/issue-9725.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// ignore-test FIXME: #13992

struct A { foo: int }

fn main() {
Expand Down
1 change: 1 addition & 0 deletions src/test/compile-fail/unsupported-cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// ignore-test FIXME: #13993
// error-pattern:unsupported cast

extern crate libc;
Expand Down