Skip to content

Commit c36645b

Browse files
committed
Assume xfail-stage0 implies stage1 and stage2 in tests, for now.
1 parent 8460680 commit c36645b

File tree

99 files changed

+198
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+198
-0
lines changed

src/test/bench/shootout/fasta.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
/* -*- mode: rust; indent-tabs-mode: nil -*-
35
* Implementation of 'fasta' benchmark from
46
* Computer Language Benchmarks Game

src/test/compile-fail/bad-alt.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
// error-pattern: Unexpected token 'x'
35

46
fn main() {

src/test/compile-fail/bad-env-capture.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
// error-pattern: attempted dynamic environment-capture
35
fn foo() {
46
let int x;

src/test/compile-fail/bad-main.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
// error-pattern: bad type signature
35

46
fn main(int x) {

src/test/compile-fail/bad-name.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
// error-pattern: malformed name
46

src/test/compile-fail/bad-recv.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
// error-pattern: mismatched types
46

57
fn main() {

src/test/compile-fail/bad-send.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
// error-pattern: mismatched types
46

57
fn main() {
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
// error-pattern: attempted dynamic environment-capture
35
fn foo[T]() { obj bar(T b) {} }
46
fn main() {}

src/test/compile-fail/bind-alias.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
// error-pattern: binding alias slot
35

46
fn f(&int x) {}

src/test/compile-fail/constructor-as-cast.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
// error-pattern: non-type context
35
type base =
46
obj {

src/test/compile-fail/dead-code-be.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
// -*- rust -*-
35

46
// error-pattern: dead

src/test/compile-fail/dead-code-ret.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
// -*- rust -*-
35

46
// error-pattern: dead

src/test/compile-fail/direct-obj-fn-call.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
// error-pattern: is not a mod
46

src/test/compile-fail/does-nothing.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
// error-pattern: does nothing
35
fn main() {
46
log "doing";

src/test/compile-fail/export-boot.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
// error-pattern: unknown module item
35

46
// rustboot has a different error message than rustc

src/test/compile-fail/infinite-tag-type-recursion.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
// -*- rust -*-
35

46
// error-pattern: tag of infinite size

src/test/compile-fail/infinite-vec-type-recursion.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
// -*- rust -*-
46

57
// error-pattern: infinite recursive type definition

src/test/compile-fail/item-name-overload.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
// -*- rust -*-
35

46
// error-pattern: name

src/test/compile-fail/missing-return.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
// error-pattern: return
35

46
fn f() -> int {

src/test/compile-fail/no-self-dispatch.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
// error-pattern: unresolved identifier
35
obj oT() {
46
fn get() -> int {

src/test/compile-fail/not-a-pred.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
// -*- rust -*-
35

46
// error-pattern: mismatched types

src/test/compile-fail/pred-on-wrong-slots.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
// -*- rust -*-
35

46
// error-pattern: Unsatisfied .* lt(a, c)

src/test/compile-fail/put-in-fn.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
// error-pattern: iterator function
35

46
fn f() -> int {

src/test/compile-fail/slot-as-pred.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
// -*- rust -*-
35

46
// error-pattern: mismatched types

src/test/compile-fail/spawn-non-nil-fn.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
// error-pattern: mismatched types
35

46
fn f(int x) -> int {

src/test/compile-fail/unbalanced-comment.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
// -*- rust -*-
35

46
// error-pattern: token

src/test/compile-fail/writing-through-read-alias.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
// -*- rust -*-
46

57
// error-pattern: writing to immutable type

src/test/compile-fail/writing-to-immutable-obj.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
// error-pattern: writing to immutable type
35
obj objy(int x) {
46
fn foo() -> () {

src/test/compile-fail/writing-to-immutable-rec.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
// error-pattern: writing to immutable type
35
fn main() {
46
let rec(int x) r = rec(x=1);

src/test/compile-fail/writing-to-immutable-tup.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
// error-pattern: writing to immutable type
35
fn main() {
46
let tup(int) t = tup(1);

src/test/compile-fail/writing-to-immutable-vec.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
// error-pattern: writing to immutable type
35
fn main() {
46
let vec[int] v = vec(1, 2, 3);

src/test/run-fail/explicit-fail.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
// error-pattern:explicit
35

46
fn main() {

src/test/run-fail/fail.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
// error-pattern:1 == 2
35

46
fn main() {

src/test/run-fail/linked-failure.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
// -*- rust -*-
35

46
// error-pattern:1 == 2

src/test/run-fail/non-exhaustive-match.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
// -*- rust -*-
35

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

src/test/run-fail/pred.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
// -*- rust -*-
35

46
// error-pattern:predicate check

src/test/run-fail/str-overrun.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
// -*- rust -*-
35

46
// error-pattern:bounds check

src/test/run-fail/task-comm-14.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
io fn main() {
46
let port[int] po = port();
57

src/test/run-fail/vec-overrun.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
// -*- rust -*-
35

46
// error-pattern:bounds check

src/test/run-fail/vec-underrun.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
// -*- rust -*-
35

46
// error-pattern:bounds check

src/test/run-pass/acyclic-unwind.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
// -*- rust -*-
35

46
fn f(chan[int] c)

src/test/run-pass/alt-type-simple.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
fn altsimple(any x) {
46
alt type (f) {
57
case (int i) { print("int"); }

src/test/run-pass/artificial-block.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// xfail-stage0
22
// xfail-stage1
33
// xfail-stage2
4+
// xfail-stage1
5+
// xfail-stage2
46
fn f() -> int {
57
{ ret 3; }
68
}

src/test/run-pass/basic-1.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
// -*- rust -*-
35

46
fn a(chan[int] c) {

src/test/run-pass/basic-2.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
// -*- rust -*-
35

46
fn a(chan[int] c) {

src/test/run-pass/basic.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
// -*- rust -*-
35

46
fn a(chan[int] c) {

src/test/run-pass/child-outlives-parent.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
// Reported as issue #126, child leaks the string.
46

57
fn child2(str s) {

src/test/run-pass/clone-with-exterior.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
fn f(@rec(int a, int b) x) {
46
assert (x.a == 10);
57
assert (x.b == 12);

src/test/run-pass/comm.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
// -*- rust -*-
35

46
fn main() {

src/test/run-pass/constrained-type.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
// -*- rust -*-
46

57
// Reported as issue #141, as a parse error. Ought to work in full though.

src/test/run-pass/destructor-ordering.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
// This test checks that destructors run in the right order. Because
46
// stateful objects can't have destructors, we have the destructors
57
// record their expected order into a channel when they execute (so

src/test/run-pass/iter-ret.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
iter x() -> int {
46
}
57

src/test/run-pass/lazychan.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
// -*- rust -*-
35

46
fn main() {

src/test/run-pass/lib-io.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-boot
22
// xfail-stage0
3+
// xfail-stage1
4+
// xfail-stage2
35
// -*- rust -*-
46

57
use std;

src/test/run-pass/lib-rand.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
// -*- rust -*-
35

46
use std;

0 commit comments

Comments
 (0)