Skip to content

Commit 1eb8690

Browse files
committed
Make the // skip-codegen property apply to ui tests too.
1 parent 9e33d57 commit 1eb8690

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/tools/compiletest/src/runtest.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,12 @@ impl<'test> TestCx<'test> {
262262
}
263263

264264
fn should_run_successfully(&self) -> bool {
265-
match self.config.mode {
266-
RunPass => !self.props.skip_codegen,
265+
let run_pass = match self.config.mode {
266+
RunPass => true,
267267
Ui => self.props.run_pass,
268268
_ => unimplemented!(),
269-
}
269+
};
270+
return run_pass && !self.props.skip_codegen;
270271
}
271272

272273
fn should_compile_successfully(&self) -> bool {

0 commit comments

Comments
 (0)