Skip to content

Commit fc2703c

Browse files
committed
---
yaml --- r: 113885 b: refs/heads/master c: 87115fd h: refs/heads/master i: 113883: 4dd16c4 v: v3
1 parent f4549db commit fc2703c

15 files changed

+30
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 07caa224501817c93be3f5c57a013ed5db6c04e1
2+
refs/heads/master: 87115fd001440652291c509a77bda74fa511dab0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
55
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17

trunk/configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@ do
803803
make_dir $h/test/run-pass-fulldeps
804804
make_dir $h/test/run-fail
805805
make_dir $h/test/compile-fail
806+
make_dir $h/test/compile-fail-fulldeps
806807
make_dir $h/test/bench
807808
make_dir $h/test/perf
808809
make_dir $h/test/pretty

trunk/mk/tests.mk

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ check-stage$(1)-T-$(2)-H-$(3)-exec: \
288288
check-stage$(1)-T-$(2)-H-$(3)-rfail-exec \
289289
check-stage$(1)-T-$(2)-H-$(3)-cfail-exec \
290290
check-stage$(1)-T-$(2)-H-$(3)-rpass-full-exec \
291+
check-stage$(1)-T-$(2)-H-$(3)-cfail-full-exec \
291292
check-stage$(1)-T-$(2)-H-$(3)-rmake-exec \
292293
check-stage$(1)-T-$(2)-H-$(3)-crates-exec \
293294
check-stage$(1)-T-$(2)-H-$(3)-doc-crates-exec \
@@ -451,6 +452,8 @@ RPASS_RC := $(wildcard $(S)src/test/run-pass/*.rc)
451452
RPASS_RS := $(wildcard $(S)src/test/run-pass/*.rs)
452453
RPASS_FULL_RC := $(wildcard $(S)src/test/run-pass-fulldeps/*.rc)
453454
RPASS_FULL_RS := $(wildcard $(S)src/test/run-pass-fulldeps/*.rs)
455+
CFAIL_FULL_RC := $(wildcard $(S)src/test/compile-fail-fulldeps/*.rc)
456+
CFAIL_FULL_RS := $(wildcard $(S)src/test/compile-fail-fulldeps/*.rs)
454457
RFAIL_RC := $(wildcard $(S)src/test/run-fail/*.rc)
455458
RFAIL_RS := $(wildcard $(S)src/test/run-fail/*.rs)
456459
CFAIL_RC := $(wildcard $(S)src/test/compile-fail/*.rc)
@@ -467,6 +470,7 @@ PERF_RS := $(wildcard $(S)src/test/bench/*.rs)
467470

468471
RPASS_TESTS := $(RPASS_RC) $(RPASS_RS)
469472
RPASS_FULL_TESTS := $(RPASS_FULL_RC) $(RPASS_FULL_RS)
473+
CFAIL_FULL_TESTS := $(CFAIL_FULL_RC) $(CFAIL_FULL_RS)
470474
RFAIL_TESTS := $(RFAIL_RC) $(RFAIL_RS)
471475
CFAIL_TESTS := $(CFAIL_RC) $(CFAIL_RS)
472476
BENCH_TESTS := $(BENCH_RS)
@@ -485,6 +489,11 @@ CTEST_BUILD_BASE_rpass-full = run-pass-fulldeps
485489
CTEST_MODE_rpass-full = run-pass
486490
CTEST_RUNTOOL_rpass-full = $(CTEST_RUNTOOL)
487491

492+
CTEST_SRC_BASE_cfail-full = compile-fail-fulldeps
493+
CTEST_BUILD_BASE_cfail-full = compile-fail-fulldeps
494+
CTEST_MODE_cfail-full = compile-fail
495+
CTEST_RUNTOOL_cfail-full = $(CTEST_RUNTOOL)
496+
488497
CTEST_SRC_BASE_rfail = run-fail
489498
CTEST_BUILD_BASE_rfail = run-fail
490499
CTEST_MODE_rfail = run-fail
@@ -583,6 +592,7 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
583592

584593
CTEST_DEPS_rpass_$(1)-T-$(2)-H-$(3) = $$(RPASS_TESTS)
585594
CTEST_DEPS_rpass-full_$(1)-T-$(2)-H-$(3) = $$(RPASS_FULL_TESTS) $$(CSREQ$(1)_T_$(3)_H_$(3)) $$(SREQ$(1)_T_$(2)_H_$(3))
595+
CTEST_DEPS_cfail-full_$(1)-T-$(2)-H-$(3) = $$(CFAIL_FULL_TESTS) $$(CSREQ$(1)_T_$(3)_H_$(3)) $$(SREQ$(1)_T_$(2)_H_$(3))
586596
CTEST_DEPS_rfail_$(1)-T-$(2)-H-$(3) = $$(RFAIL_TESTS)
587597
CTEST_DEPS_cfail_$(1)-T-$(2)-H-$(3) = $$(CFAIL_TESTS)
588598
CTEST_DEPS_bench_$(1)-T-$(2)-H-$(3) = $$(BENCH_TESTS)
@@ -651,7 +661,7 @@ endif
651661

652662
endef
653663

654-
CTEST_NAMES = rpass rpass-full rfail cfail bench perf debuginfo codegen
664+
CTEST_NAMES = rpass rpass-full cfail-full rfail cfail bench perf debuginfo codegen
655665

656666
$(foreach host,$(CFG_HOST), \
657667
$(eval $(foreach target,$(CFG_TARGET), \
@@ -794,6 +804,7 @@ TEST_GROUPS = \
794804
$(foreach crate,$(TEST_DOC_CRATES),doc-crate-$(crate)) \
795805
rpass \
796806
rpass-full \
807+
cfail-full \
797808
rfail \
798809
cfail \
799810
bench \

trunk/src/compiletest/runtest.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ fn run_cfail_test(config: &config, props: &TestProps, testfile: &Path) {
8989
} else {
9090
check_error_patterns(props, testfile, &proc_res);
9191
}
92+
check_no_compiler_crash(&proc_res);
9293
}
9394

9495
fn run_rfail_test(config: &config, props: &TestProps, testfile: &Path) {
@@ -505,6 +506,15 @@ fn check_error_patterns(props: &TestProps,
505506
}
506507
}
507508

509+
fn check_no_compiler_crash(proc_res: &ProcRes) {
510+
for line in proc_res.stderr.lines() {
511+
if line.starts_with("error: internal compiler error:") {
512+
fatal_ProcRes("compiler encountered internal error".to_owned(),
513+
proc_res);
514+
}
515+
}
516+
}
517+
508518
fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
509519
testfile: &Path,
510520
proc_res: &ProcRes) {

trunk/src/test/compile-fail/inherit-struct8.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-test FIXME: #13991
12+
13+
1114
// Test struct inheritance.
1215
#![feature(struct_inherit)]
1316

trunk/src/test/compile-fail/issue-9725.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-test FIXME: #13992
12+
1113
struct A { foo: int }
1214

1315
fn main() {

trunk/src/test/compile-fail/unsupported-cast.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-test FIXME: #13993
1112
// error-pattern:unsupported cast
1213

1314
extern crate libc;

0 commit comments

Comments
 (0)