about summary refs log tree commit diff
path: root/src/compiletest
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2014-02-07 20:08:32 +0100
committerFlorian Hahn <flo@fhahn.com>2014-02-11 18:23:20 +0100
commitf62460c1f54a693cd046513ef6776bb3551c929d (patch)
tree08eb9d35f3e6365256fb4d3fa1404b9c1702750e /src/compiletest
parent5b5ebf230b02e430e087b3f2edaaf1cfe5567b34 (diff)
downloadrust-f62460c1f54a693cd046513ef6776bb3551c929d.tar.gz
rust-f62460c1f54a693cd046513ef6776bb3551c929d.zip
Change `xfail` directives in compiletests to `ignore`, closes #11363
Diffstat (limited to 'src/compiletest')
-rw-r--r--src/compiletest/compiletest.rs2
-rw-r--r--src/compiletest/header.rs16
2 files changed, 9 insertions, 9 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs
index b3151ac99b2..5530c3b9086 100644
--- a/src/compiletest/compiletest.rs
+++ b/src/compiletest/compiletest.rs
@@ -61,7 +61,7 @@ pub fn parse_config(args: ~[~str]) -> config {
           reqopt("", "stage-id", "the target-stage identifier", "stageN-TARGET"),
           reqopt("", "mode", "which sort of compile tests to run",
                  "(compile-fail|run-fail|run-pass|pretty|debug-info)"),
-          optflag("", "ignored", "run tests marked as ignored / xfailed"),
+          optflag("", "ignored", "run tests marked as ignored"),
           optopt("", "runtool", "supervisor program to run tests under \
                                  (eg. emulator, valgrind)", "PROGRAM"),
           optopt("", "rustcflags", "flags to pass to rustc", "FLAGS"),
diff --git a/src/compiletest/header.rs b/src/compiletest/header.rs
index ee4d74ce169..5271cfb9b8e 100644
--- a/src/compiletest/header.rs
+++ b/src/compiletest/header.rs
@@ -95,19 +95,19 @@ pub fn load_props(testfile: &Path) -> TestProps {
 }
 
 pub fn is_test_ignored(config: &config, testfile: &Path) -> bool {
-    fn xfail_target(config: &config) -> ~str {
-        ~"xfail-" + util::get_os(config.target)
+    fn ignore_target(config: &config) -> ~str {
+        ~"ignore-" + util::get_os(config.target)
     }
-    fn xfail_stage(config: &config) -> ~str {
-        ~"xfail-" + config.stage_id.split('-').next().unwrap()
+    fn ignore_stage(config: &config) -> ~str {
+        ~"ignore-" + config.stage_id.split('-').next().unwrap()
     }
 
     let val = iter_header(testfile, |ln| {
-        if parse_name_directive(ln, "xfail-test") { false }
-        else if parse_name_directive(ln, xfail_target(config)) { false }
-        else if parse_name_directive(ln, xfail_stage(config)) { false }
+        if parse_name_directive(ln, "ignore-test") { false }
+        else if parse_name_directive(ln, ignore_target(config)) { false }
+        else if parse_name_directive(ln, ignore_stage(config)) { false }
         else if config.mode == common::mode_pretty &&
-            parse_name_directive(ln, "xfail-pretty") { false }
+            parse_name_directive(ln, "ignore-pretty") { false }
         else { true }
     });