Skip to content

Commit

Permalink
make --pass check work with // run-fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Dec 13, 2019
1 parent 703c82e commit 68cce86
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,12 @@ impl TestProps {

pub fn pass_mode(&self, config: &Config) -> Option<PassMode> {
if !self.ignore_pass {
if let (mode @ Some(_), Some(_)) = (config.force_pass_mode, self.pass_mode) {
return mode;
if let (mode @ Some(_), Some(pm_file)) = (config.force_pass_mode, self.pass_mode) {
if pm_file != PassMode::RunFail {
// HACK(Centril): See #66929. Ensure that `--pass check`
// does not cause `// run-fail` tests to fail.
return mode;
}
}
}
self.pass_mode
Expand Down

0 comments on commit 68cce86

Please sign in to comment.