Skip to content

Commit 70106f3

Browse files
committed
test: Fix run-fail testing and bring tests up to date
A typo in the Makefile was causing these to not run. Happily, a lot of these tests pass, so un-xfailed.
1 parent 763380a commit 70106f3

File tree

10 files changed

+4
-22
lines changed

10 files changed

+4
-22
lines changed

mk/tests.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ TEST_RFAIL_EXES_STAGE2 = \
9191
TEST_RFAIL_OUTS_STAGE0 = \
9292
$(TEST_RFAIL_EXES_STAGE0:.stage0$(X)=.stage0.out)
9393
TEST_RFAIL_OUTS_STAGE1 = \
94-
$(TEST_RFAIL_EXES_STAGE0:.stage1$(X)=.stage1.out)
94+
$(TEST_RFAIL_EXES_STAGE1:.stage1$(X)=.stage1.out)
9595
TEST_RFAIL_OUTS_STAGE2 = \
96-
$(TEST_RFAIL_EXES_STAGE0:.stage2$(X)=.stage2.out)
96+
$(TEST_RFAIL_EXES_STAGE2:.stage2$(X)=.stage2.out)
9797

9898

9999
TEST_CFAIL_CRATES_STAGE0 = $(filter-out $(TEST_XFAILS_STAGE0), $(CFAIL_RC))

src/test/run-fail/explicit-fail.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-stage0
2-
// xfail-stage1
3-
// xfail-stage2
41
// error-pattern:explicit
52

63
fn main() {

src/test/run-fail/expr-alt-fail.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// xfail-stage0
21
// error-pattern:explicit failure
32

43
fn main() {

src/test/run-fail/expr-if-fail.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// xfail-stage0
21
// error-pattern:explicit failure
32

43
fn main() {

src/test/run-fail/fail.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-stage0
2-
// xfail-stage1
3-
// xfail-stage2
41
// error-pattern:1 == 2
52

63
fn main() {

src/test/run-fail/non-exhaustive-match.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-stage0
2-
// xfail-stage1
3-
// xfail-stage2
41
// -*- rust -*-
52

63
// error-pattern:non-exhaustive match failure

src/test/run-fail/str-overrun.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-stage0
2-
// xfail-stage1
3-
// xfail-stage2
41
// -*- rust -*-
52

63
// error-pattern:bounds check

src/test/run-fail/trivial-message2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// xfail-stage0
2+
// xfail-stage1
3+
// xfail-stage2
24
/*
35
This program should hang on the r <- po line.
46
*/

src/test/run-fail/vec-overrun.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-stage0
2-
// xfail-stage1
3-
// xfail-stage2
41
// -*- rust -*-
52

63
// error-pattern:bounds check

src/test/run-fail/vec-underrun.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-stage0
2-
// xfail-stage1
3-
// xfail-stage2
41
// -*- rust -*-
52

63
// error-pattern:bounds check

0 commit comments

Comments
 (0)