about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-09-14 12:17:30 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-09-21 16:21:37 +0200
commitae0a53a39b29ed0fb138b05ef8015702b91d8b00 (patch)
tree78d4b3ae0ab3edd6eece8f6e54ff1dacb07fa0a2
parentddb1a2afb7c2e5d20d7ae738ef9c27feb54972e3 (diff)
downloadrust-ae0a53a39b29ed0fb138b05ef8015702b91d8b00.tar.gz
rust-ae0a53a39b29ed0fb138b05ef8015702b91d8b00.zip
Support `// skip-codegen` in header of ui tests
(just like how they behaved under previous run-pass semantics)
-rw-r--r--src/tools/compiletest/src/runtest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index 3c18f9bd7c3..1d06f116dec 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -263,7 +263,7 @@ impl<'test> TestCx<'test> {
 
     fn should_run_successfully(&self) -> bool {
         match self.config.mode {
-            RunPass => true,
+            RunPass => !self.props.skip_codegen,
             Ui => self.props.run_pass,
             _ => unimplemented!(),
         }