Skip to content

Commit

Permalink
compiletest: Add support for ignoring certain tests under `--compare-…
Browse files Browse the repository at this point in the history
…mode=...`
  • Loading branch information
pnkfelix committed Jul 26, 2018
1 parent 4b2e553 commit 94a2972
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::io::prelude::*;
use std::io::BufReader;
use std::path::{Path, PathBuf};

use common::{self, Config, Mode};
use common::{self, CompareMode, Config, Mode};
use util;

use extract_gdb_version;
Expand Down Expand Up @@ -608,7 +608,12 @@ impl Config {
common::DebugInfoLldb => name == "lldb",
common::Pretty => name == "pretty",
_ => false,
} || (self.target != self.host && name == "cross-compile")
} || (self.target != self.host && name == "cross-compile") ||
match self.compare_mode {
Some(CompareMode::Nll) => name == "compare-mode-nll",
Some(CompareMode::Polonius) => name == "compare-mode-polonius",
None => false,
}
} else {
false
}
Expand Down

0 comments on commit 94a2972

Please sign in to comment.