diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-01 11:41:19 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-02 10:39:13 -0700 |
| commit | 0a6e3362c6d8a6c7c81eb42aaae1ea374c58d464 (patch) | |
| tree | fe07faee61073d0af3e39eda28390bcbdc8b448a | |
| parent | 166c73546a4cdd196936700676b2ba59e7c1cde8 (diff) | |
| download | rust-0a6e3362c6d8a6c7c81eb42aaae1ea374c58d464.tar.gz rust-0a6e3362c6d8a6c7c81eb42aaae1ea374c58d464.zip | |
Add xfail-pretty directives to tests that don't pretty-print correctly
Issue #789
| -rw-r--r-- | src/test/run-pass/alt-str.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/block-expr-precedence.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/constrained-type.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/fun-call-variants.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/hashmap-memory.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/if-check-precond.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/if-ret.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/issue-687.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/item-attributes.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/macro-by-example-2.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/pattern-bound-var-in-for-each.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/swap-2.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/syntax-extension-fmt.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/task-comm.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/typestate-transitive.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/while-prelude-drop.rs | 2 |
16 files changed, 19 insertions, 2 deletions
diff --git a/src/test/run-pass/alt-str.rs b/src/test/run-pass/alt-str.rs index 8fd15eb76af..2812b335a2d 100644 --- a/src/test/run-pass/alt-str.rs +++ b/src/test/run-pass/alt-str.rs @@ -1,3 +1,4 @@ +// xfail-pretty // Issue #53 fn main() { diff --git a/src/test/run-pass/block-expr-precedence.rs b/src/test/run-pass/block-expr-precedence.rs index 2164ef25a0a..6dea3882f68 100644 --- a/src/test/run-pass/block-expr-precedence.rs +++ b/src/test/run-pass/block-expr-precedence.rs @@ -1,3 +1,4 @@ +// xfail-pretty // no-reformat /* diff --git a/src/test/run-pass/constrained-type.rs b/src/test/run-pass/constrained-type.rs index 6f3c6a51dfe..4916086b528 100644 --- a/src/test/run-pass/constrained-type.rs +++ b/src/test/run-pass/constrained-type.rs @@ -1,4 +1,5 @@ // xfail-stage0 +// xfail-pretty // -*- rust -*- tag list { cons(int, @list); nil; } diff --git a/src/test/run-pass/fun-call-variants.rs b/src/test/run-pass/fun-call-variants.rs index a15a9646b5a..75619cec187 100644 --- a/src/test/run-pass/fun-call-variants.rs +++ b/src/test/run-pass/fun-call-variants.rs @@ -1,4 +1,4 @@ - +// xfail-pretty // -*- rust -*- diff --git a/src/test/run-pass/hashmap-memory.rs b/src/test/run-pass/hashmap-memory.rs index 6470f4d4206..d60f45f2da8 100644 --- a/src/test/run-pass/hashmap-memory.rs +++ b/src/test/run-pass/hashmap-memory.rs @@ -1,3 +1,4 @@ +// xfail-pretty /** A somewhat reduced test case to expose some Valgrind issues. diff --git a/src/test/run-pass/if-check-precond.rs b/src/test/run-pass/if-check-precond.rs index bb7fdd30817..c9a3d629697 100644 --- a/src/test/run-pass/if-check-precond.rs +++ b/src/test/run-pass/if-check-precond.rs @@ -1,4 +1,5 @@ // xfail-stage0 +// xfail-pretty pred even(x: uint) -> bool { if x < 2u { ret false; diff --git a/src/test/run-pass/if-ret.rs b/src/test/run-pass/if-ret.rs index 0137bf912af..421c74a8d80 100644 --- a/src/test/run-pass/if-ret.rs +++ b/src/test/run-pass/if-ret.rs @@ -1,4 +1,5 @@ // xfail-stage0 +// xfail-pretty fn foo() { if (ret) { } } fn main() { foo(); } \ No newline at end of file diff --git a/src/test/run-pass/issue-687.rs b/src/test/run-pass/issue-687.rs index 1a0e93874f1..b97f9890e81 100644 --- a/src/test/run-pass/issue-687.rs +++ b/src/test/run-pass/issue-687.rs @@ -1,4 +1,5 @@ // xfail-stage0 +// xfail-pretty use std; import std::ivec; diff --git a/src/test/run-pass/item-attributes.rs b/src/test/run-pass/item-attributes.rs index 43a1701f39e..08b16fa40c5 100644 --- a/src/test/run-pass/item-attributes.rs +++ b/src/test/run-pass/item-attributes.rs @@ -1,4 +1,5 @@ // xfail-stage0 +// xfail-pretty // These are attributes of the implicit crate. Really this just needs to parse // for completeness since .rs files linked from .rc files support this diff --git a/src/test/run-pass/macro-by-example-2.rs b/src/test/run-pass/macro-by-example-2.rs index 5fde2f49e18..c6bcc9323f8 100644 --- a/src/test/run-pass/macro-by-example-2.rs +++ b/src/test/run-pass/macro-by-example-2.rs @@ -1,3 +1,5 @@ +// xfail-pretty + fn main() { #macro([#zip_or_unzip[[x, ...], [y, ...]], [[x, y], ...]], [#zip_or_unzip[[xx, yy], ...], [[xx, ...], [yy, ...]]]); diff --git a/src/test/run-pass/pattern-bound-var-in-for-each.rs b/src/test/run-pass/pattern-bound-var-in-for-each.rs index 504aea1d440..51964c34155 100644 --- a/src/test/run-pass/pattern-bound-var-in-for-each.rs +++ b/src/test/run-pass/pattern-bound-var-in-for-each.rs @@ -1,4 +1,5 @@ // xfail-stage0 +// xfail-pretty // Tests that trans_path checks whether a // pattern-bound var is an upvar (when translating // the for-each body) diff --git a/src/test/run-pass/swap-2.rs b/src/test/run-pass/swap-2.rs index 724ffc8b70d..3322ce19361 100644 --- a/src/test/run-pass/swap-2.rs +++ b/src/test/run-pass/swap-2.rs @@ -1,3 +1,5 @@ +// xfail-pretty + fn swap[@T](v: &vec[mutable T], i: int, j: int) { v.(i) <-> v.(j); } fn main() { diff --git a/src/test/run-pass/syntax-extension-fmt.rs b/src/test/run-pass/syntax-extension-fmt.rs index 44119c8b0ea..3102ffb9b62 100644 --- a/src/test/run-pass/syntax-extension-fmt.rs +++ b/src/test/run-pass/syntax-extension-fmt.rs @@ -1,3 +1,4 @@ +// xfail-pretty use std; import std::str; diff --git a/src/test/run-pass/task-comm.rs b/src/test/run-pass/task-comm.rs index 6b69bbbd325..456e21c5c17 100644 --- a/src/test/run-pass/task-comm.rs +++ b/src/test/run-pass/task-comm.rs @@ -1,4 +1,5 @@ // xfail-stage0 +// xfail-pretty use std; diff --git a/src/test/run-pass/typestate-transitive.rs b/src/test/run-pass/typestate-transitive.rs index f2eda37e0d0..0ec3b86f1d7 100644 --- a/src/test/run-pass/typestate-transitive.rs +++ b/src/test/run-pass/typestate-transitive.rs @@ -1,3 +1,5 @@ +// xfail-pretty + pred p(i: int) -> bool { true } fn f(i: int) : p(i) -> int { i } diff --git a/src/test/run-pass/while-prelude-drop.rs b/src/test/run-pass/while-prelude-drop.rs index 59db1c6d4a7..e480db6d106 100644 --- a/src/test/run-pass/while-prelude-drop.rs +++ b/src/test/run-pass/while-prelude-drop.rs @@ -1,4 +1,4 @@ - +// xfail-pretty tag t { a; b(str); } |
