Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
tests: Require run-pass tests without annotations to run successfully…
… again
  • Loading branch information
petrochenkov committed Jul 22, 2019
commit 14f51604230dcc77ea2b360b743c59b51126f3a4
4 changes: 3 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,10 @@ impl<'test> TestCx<'test> {
}

fn should_run_successfully(&self) -> bool {
let pass_mode = self.pass_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),
}
}
Expand Down