Revert "Replace xfail-stageN with simply xfail-test"

This reverts commit 574194f6bc.
This commit is contained in:
Marijn Haverbeke 2011-08-31 14:24:08 +02:00
parent 574194f6bc
commit 66bc014720
41 changed files with 119 additions and 41 deletions

View File

@ -9,7 +9,7 @@ else
$(wildcard $(S)src/fuzzer/*.rs) $(wildcard $(S)src/fuzzer/*.rs)
PP_INPUTS_FILTERED = $(shell echo $(PP_INPUTS) | xargs grep -L \ PP_INPUTS_FILTERED = $(shell echo $(PP_INPUTS) | xargs grep -L \
"no-reformat\|xfail-pretty\|xfail-test") "no-reformat\|xfail-pretty\|xfail-stage2")
endif endif
reformat: $(SREQ1) reformat: $(SREQ1)

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// error-pattern: attempted dynamic environment-capture // error-pattern: attempted dynamic environment-capture
fn foo<T>() { fn foo<T>() {
obj bar(b: T) { } obj bar(b: T) { }

View File

@ -1,5 +1,7 @@
// -*- rust -*- // -*- rust -*-
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// error-pattern:Unsatisfied precondition // error-pattern:Unsatisfied precondition
tag list { cons(int, @list); nil; } tag list { cons(int, @list); nil; }

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// -*- rust -*- // -*- rust -*-
// error-pattern: dead // error-pattern: dead

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// -*- rust -*- // -*- rust -*-
// error-pattern: dead // error-pattern: dead

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// -*- rust -*- // -*- rust -*-
// error-pattern: tag of infinite size // error-pattern: tag of infinite size

View File

@ -59,9 +59,12 @@ fn is_test_ignored(config: &config, testfile: &istr) -> bool {
let found = false; let found = false;
for each ln: istr in iter_header(testfile) { for each ln: istr in iter_header(testfile) {
// FIXME: Can't return or break from iterator // FIXME: Can't return or break from iterator
found = found || parse_name_directive(ln, ~"xfail-test"); found = found
|| parse_name_directive(ln, ~"xfail-"
+ config.stage_id);
if (config.mode == common::mode_pretty) { if (config.mode == common::mode_pretty) {
found = found || parse_name_directive(ln, ~"xfail-pretty"); found = found
|| parse_name_directive(ln, ~"xfail-pretty");
} }
} }
ret found; ret found;

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// Fail statements without arguments need to be disambiguated in // Fail statements without arguments need to be disambiguated in
// certain positions // certain positions
// error-pattern:explicit-failure // error-pattern:explicit-failure

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
io fn main() { io fn main() {
let port<int> po = port(); let port<int> po = port();

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
/* /*
This program should hang on the po |> r line. This program should hang on the po |> r line.

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// -*- rust -*- // -*- rust -*-
use std; use std;

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
fn altsimple(any x) { fn altsimple(any x) {
alt type (f) { alt type (f) {
case (int i) { print("int"); } case (int i) { print("int"); }

View File

@ -1,4 +1,6 @@
//xfail-test //xfail-stage1
//xfail-stage2
//xfail-stage3
use std; use std;
// This is failing not because it's an anonymous object from nothing // This is failing not because it's an anonymous object from nothing

View File

@ -1,4 +1,6 @@
//xfail-test //xfail-stage1
//xfail-stage2
//xfail-stage3
// Test case for issue #822. // Test case for issue #822.
fn main() { fn main() {

View File

@ -1,4 +1,6 @@
//xfail-test //xfail-stage1
//xfail-stage2
//xfail-stage3
use std; use std;
fn main() { fn main() {

View File

@ -3,7 +3,9 @@ Can we bind native things?
*/ */
//xfail-stage0 //xfail-stage0
//xfail-test //xfail-stage1
//xfail-stage2
//xfail-stage3
native "rust" mod rustrt { native "rust" mod rustrt {
fn task_yield(); fn task_yield();

View File

@ -1,5 +1,7 @@
//xfail-stage0 //xfail-stage0
//xfail-test //xfail-stage1
//xfail-stage2
//xfail-stage3
use std; use std;
import std::task; import std::task;

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// Test case for issue #758. // Test case for issue #758.
obj foo() { fn f() { } } obj foo() { fn f() { } }

View File

@ -2,7 +2,9 @@
A simple way to make sure threading works. This should use all the A simple way to make sure threading works. This should use all the
CPU cycles an any machines that we're likely to see for a while. CPU cycles an any machines that we're likely to see for a while.
*/ */
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
use std; use std;
import std::task::join; import std::task::join;

View File

@ -1,4 +1,6 @@
//xfail-test //xfail-stage1
//xfail-stage2
//xfail-stage3
// Test case for issue #115. // Test case for issue #115.
type base = type base =

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// -*- rust -*- // -*- rust -*-
use std; use std;

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// -*- rust -*- // -*- rust -*-
native mod libc = target_libc { native mod libc = target_libc {

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// -*- rust -*- // -*- rust -*-
native "rust" mod rustrt { native "rust" mod rustrt {

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
obj big() { obj big() {
fn one() -> int { ret 1; } fn one() -> int { ret 1; }
fn two() -> int { ret 2; } fn two() -> int { ret 2; }

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// This checks that preemption works. // This checks that preemption works.
fn starve_main(alive: chan<int>) { fn starve_main(alive: chan<int>) {

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
use std; use std;
import std::sio; import std::sio;
import std::task; import std::task;

View File

@ -1,5 +1,7 @@
// Seems to hang for long periods, probably with RUST_THREADS > 1. Issue #810 // Seems to hang for long periods, probably with RUST_THREADS > 1. Issue #810
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
use std; use std;
import std::sio; import std::sio;

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
use std; use std;
import std::sio; import std::sio;
import std::task; import std::task;

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
use std; use std;
import std::sio; import std::sio;
import std::net; import std::net;

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
use std; use std;
import std::sio; import std::sio;
import std::task; import std::task;

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
fn main() { fn main() {
auto s = #shell { uname -a }; auto s = #shell { uname -a };
log s; log s;

View File

@ -1,5 +1,5 @@
// Temporarily xfailing, because something is wrong. // Temporarily xfailing, because something is wrong.
// xfail-test // xfail-stage2
use std; use std;
import std::comm; import std::comm;

View File

@ -1,7 +1,9 @@
// FIXME: this test is xfailed until sending strings is legal again. // FIXME: this test is xfailed until sending strings is legal again.
//xfail-stage0 //xfail-stage0
//xfail-test //xfail-stage1
//xfail-stage2
//xfail-stage3
use std; use std;
import std::task; import std::task;

View File

@ -1,3 +1,4 @@
// xfail-stage3
use std; use std;
import std::comm; import std::comm;
import std::task; import std::task;

View File

@ -1,5 +1,7 @@
// Broken under win // Broken under win
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
use std; use std;

View File

@ -4,7 +4,9 @@
// FIXME: This won't work until we can compare resources // FIXME: This won't work until we can compare resources
// xfail-stage0 // xfail-stage0
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
use std; use std;
import std::task; import std::task;

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// Create a task that is supervised by another task, // Create a task that is supervised by another task,
// join the supervised task from the supervising task, // join the supervised task from the supervising task,

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
import std::sys::rustrt::size_of; import std::sys::rustrt::size_of;
use std; use std;

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
use std; use std;
use libc; use libc;
use zed(name = "std"); use zed(name = "std");

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
// -*- rust -*- // -*- rust -*-
use std (name = "std", use std (name = "std",

View File

@ -1,4 +1,6 @@
// xfail-test // xfail-stage1
// xfail-stage2
// xfail-stage3
fn main() { fn main() {
let vec<int> v = [1,2,3,4,5]; let vec<int> v = [1,2,3,4,5];
auto v2 = v.(1,2); auto v2 = v.(1,2);