]> git.lizzy.rs Git - rust.git/blobdiff - src/compiletest/header.rs
remove some warnings
[rust.git] / src / compiletest / header.rs
index b0d04c6739b4a00456fe9f77fe73742977cc0454..b29e1c77be35ef088a12ae1356edeb155630d55d 100644 (file)
@@ -82,14 +82,13 @@ pub fn load_props(testfile: &Path) -> TestProps {
 }
 
 pub fn is_test_ignored(config: config, testfile: &Path) -> bool {
-    let mut found = false;
     for iter_header(testfile) |ln| {
         if parse_name_directive(ln, ~"xfail-test") { return true; }
         if parse_name_directive(ln, xfail_target()) { return true; }
         if config.mode == common::mode_pretty &&
            parse_name_directive(ln, ~"xfail-pretty") { return true; }
     };
-    return found;
+    return true;
 
     fn xfail_target() -> ~str {
         ~"xfail-" + str::from_slice(os::SYSNAME)