mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-17 11:05:20 +00:00
Add xfail-stage3 directives to tests
The new test runners run stage 3
This commit is contained in:
parent
6fc33163dc
commit
07732545d2
@ -1,6 +1,7 @@
|
||||
//xfail-stage0
|
||||
//xfail-stage1
|
||||
//xfail-stage2
|
||||
//xfail-stage3
|
||||
use std;
|
||||
|
||||
fn main() {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// error-pattern: bad type signature
|
||||
|
||||
fn main(int x) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// error-pattern: attempted dynamic environment-capture
|
||||
fn foo[T]() { obj bar(T b) {} }
|
||||
fn main() {}
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// error-pattern: binding alias slot
|
||||
|
||||
fn f(&int x) {}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// error-pattern:Unsatisfied precondition
|
||||
|
||||
tag list {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// -*- rust -*-
|
||||
|
||||
// error-pattern: dead
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// -*- rust -*-
|
||||
|
||||
// error-pattern: dead
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// -*- rust -*-
|
||||
|
||||
// error-pattern: tag of infinite size
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// error-pattern: iterator function
|
||||
|
||||
fn f() -> int {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
io fn main() {
|
||||
let port[int] po = port();
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
||||
/*
|
||||
This program should hang on the po |> r line.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// -*- rust -*-
|
||||
|
||||
fn f(chan[int] c)
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
fn altsimple(any x) {
|
||||
alt type (f) {
|
||||
case (int i) { print("int"); }
|
||||
|
@ -1,6 +1,7 @@
|
||||
//xfail-stage0
|
||||
//xfail-stage1
|
||||
//xfail-stage2
|
||||
//xfail-stage3
|
||||
use std;
|
||||
|
||||
fn main() {
|
||||
|
@ -1,6 +1,7 @@
|
||||
//xfail-stage0
|
||||
//xfail-stage1
|
||||
//xfail-stage2
|
||||
//xfail-stage3
|
||||
use std;
|
||||
|
||||
fn main() {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
fn f(@rec(int a, int b) x) {
|
||||
assert (x.a == 10);
|
||||
assert (x.b == 12);
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// This test checks that destructors run in the right order. Because
|
||||
// stateful objects can't have destructors, we have the destructors
|
||||
// record their expected order into a channel when they execute (so
|
||||
|
@ -1,6 +1,7 @@
|
||||
//xfail-stage0
|
||||
//xfail-stage1
|
||||
//xfail-stage2
|
||||
//xfail-stage3
|
||||
|
||||
fn main() {
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// -*- rust -*-
|
||||
|
||||
fn sub(chan[int] parent, int id) {
|
||||
|
@ -3,6 +3,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// -*- rust -*-
|
||||
use std;
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// -*- rust -*-
|
||||
|
||||
native mod libc = target_libc {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// -*- rust -*-
|
||||
|
||||
native "rust" mod rustrt {
|
||||
|
@ -4,6 +4,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
obj big() {
|
||||
fn one() -> int { ret 1; }
|
||||
fn two() -> int { ret 2; }
|
||||
|
@ -4,6 +4,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
obj worker(chan[int] c) {drop { log "in dtor"; c <| 10; } }
|
||||
|
||||
fn do_work(chan[int] c) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// This checks that preemption works.
|
||||
|
||||
fn starve_main(chan[int] alive) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// -*- rust -*-
|
||||
|
||||
fn x(str s, int n) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
fn main() {
|
||||
auto x = spawn m::child(10);
|
||||
join x;
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
fn main() {
|
||||
auto s = #shell { uname -a };
|
||||
log s;
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
||||
fn start(chan[chan[str]] c) {
|
||||
let port[str] p = port();
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
||||
/**
|
||||
A test case for issue #577, which also exposes #588
|
||||
|
@ -1,6 +1,8 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
||||
// Create a task that is supervised by another task,
|
||||
// join the supervised task from the supervising task,
|
||||
// then fail the supervised task. The supervised task
|
||||
|
@ -1,6 +1,8 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
fn main() {
|
||||
|
@ -3,6 +3,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
import std::sys::rustrt::size_of;
|
||||
use std;
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
use std;
|
||||
use libc;
|
||||
use zed(name = "std");
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
// -*- rust -*-
|
||||
|
||||
use std (name = "std",
|
||||
|
@ -1,6 +1,7 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
fn main() {
|
||||
let vec[int] v = [1,2,3,4,5];
|
||||
auto v2 = v.(1,2);
|
||||
|
Loading…
Reference in New Issue
Block a user