From 1eb8690cf3082502e9ffafa4bb8cf46e758a3978 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Wed, 19 Sep 2018 11:17:43 +0200 Subject: [PATCH] Make the `// skip-codegen` property apply to ui tests too. --- src/tools/compiletest/src/runtest.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 58510af4dfb..401dec7b184 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -262,11 +262,12 @@ fn run_revision(&self) { } fn should_run_successfully(&self) -> bool { - match self.config.mode { - RunPass => !self.props.skip_codegen, + let run_pass = match self.config.mode { + RunPass => true, Ui => self.props.run_pass, _ => unimplemented!(), - } + }; + return run_pass && !self.props.skip_codegen; } fn should_compile_successfully(&self) -> bool { -- 2.44.0