tests: Require run-pass tests without annotations to run successfully again
This commit is contained in:
parent
273f42b596
commit
14f5160423
1 changed files with 3 additions and 1 deletions
|
@ -318,8 +318,10 @@ impl<'test> TestCx<'test> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn should_run_successfully(&self) -> bool {
|
fn should_run_successfully(&self) -> bool {
|
||||||
|
let pass_mode = self.pass_mode();
|
||||||
match self.config.mode {
|
match self.config.mode {
|
||||||
RunPass | Ui => self.pass_mode() == Some(PassMode::Run),
|
Ui => pass_mode == Some(PassMode::Run),
|
||||||
|
RunPass => pass_mode == Some(PassMode::Run) || pass_mode.is_none(),
|
||||||
mode => panic!("unimplemented for mode {:?}", mode),
|
mode => panic!("unimplemented for mode {:?}", mode),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue