Skip to content

Commit 0a6e336

Browse files
committed
Add xfail-pretty directives to tests that don't pretty-print correctly
Issue #789
1 parent 166c735 commit 0a6e336

16 files changed

+19
-2
lines changed

src/test/run-pass/alt-str.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// xfail-pretty
12
// Issue #53
23

34
fn main() {

src/test/run-pass/block-expr-precedence.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// xfail-pretty
12
// no-reformat
23

34
/*

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// xfail-stage0
2+
// xfail-pretty
23
// -*- rust -*-
34

45
tag list { cons(int, @list); nil; }

src/test/run-pass/fun-call-variants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
// xfail-pretty
22

33

44
// -*- rust -*-

src/test/run-pass/hashmap-memory.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// xfail-pretty
12
/**
23
A somewhat reduced test case to expose some Valgrind issues.
34

src/test/run-pass/if-check-precond.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// xfail-stage0
2+
// xfail-pretty
23
pred even(x: uint) -> bool {
34
if x < 2u {
45
ret false;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// xfail-stage0
2+
// xfail-pretty
23
fn foo() { if (ret) { } }
34

45
fn main() { foo(); }

src/test/run-pass/issue-687.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// xfail-stage0
2+
// xfail-pretty
23

34
use std;
45
import std::ivec;

src/test/run-pass/item-attributes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// xfail-stage0
2+
// xfail-pretty
23

34
// These are attributes of the implicit crate. Really this just needs to parse
45
// for completeness since .rs files linked from .rc files support this

src/test/run-pass/macro-by-example-2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// xfail-pretty
2+
13
fn main() {
24
#macro([#zip_or_unzip[[x, ...], [y, ...]], [[x, y], ...]],
35
[#zip_or_unzip[[xx, yy], ...], [[xx, ...], [yy, ...]]]);

src/test/run-pass/pattern-bound-var-in-for-each.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// xfail-stage0
2+
// xfail-pretty
23
// Tests that trans_path checks whether a
34
// pattern-bound var is an upvar (when translating
45
// the for-each body)

src/test/run-pass/swap-2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// xfail-pretty
2+
13
fn swap[@T](v: &vec[mutable T], i: int, j: int) { v.(i) <-> v.(j); }
24

35
fn main() {

src/test/run-pass/syntax-extension-fmt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// xfail-pretty
12

23
use std;
34
import std::str;

src/test/run-pass/task-comm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// xfail-stage0
2+
// xfail-pretty
23

34
use std;
45

src/test/run-pass/typestate-transitive.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// xfail-pretty
2+
13
pred p(i: int) -> bool { true }
24

35
fn f(i: int) : p(i) -> int { i }

src/test/run-pass/while-prelude-drop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
// xfail-pretty
22

33
tag t { a; b(str); }
44

0 commit comments

Comments
 (0)