Skip to content

Commit 94a2972

Browse files
committed
compiletest: Add support for ignoring certain tests under --compare-mode=...
1 parent 4b2e553 commit 94a2972

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/tools/compiletest/src/header.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::io::prelude::*;
1414
use std::io::BufReader;
1515
use std::path::{Path, PathBuf};
1616

17-
use common::{self, Config, Mode};
17+
use common::{self, CompareMode, Config, Mode};
1818
use util;
1919

2020
use extract_gdb_version;
@@ -608,7 +608,12 @@ impl Config {
608608
common::DebugInfoLldb => name == "lldb",
609609
common::Pretty => name == "pretty",
610610
_ => false,
611-
} || (self.target != self.host && name == "cross-compile")
611+
} || (self.target != self.host && name == "cross-compile") ||
612+
match self.compare_mode {
613+
Some(CompareMode::Nll) => name == "compare-mode-nll",
614+
Some(CompareMode::Polonius) => name == "compare-mode-polonius",
615+
None => false,
616+
}
612617
} else {
613618
false
614619
}

0 commit comments

Comments
 (0)