]> git.lizzy.rs Git - rust.git/commitdiff
you can have `// compile-pass` markers in headers of `compile-fail/` tests.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 17 Sep 2018 08:43:05 +0000 (10:43 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 21 Sep 2018 14:21:39 +0000 (16:21 +0200)
(It seems only `compile-fail-fulldeps/` exercises this functionality,
unfortunately.)

src/tools/compiletest/src/runtest.rs

index 860a1439f6cfb5395f3bf0a71a48b9ae769ddb93..58510af4dfba1c28d119ab11d9a0fa6b0718c314 100644 (file)
@@ -271,7 +271,7 @@ fn should_run_successfully(&self) -> bool {
 
     fn should_compile_successfully(&self) -> bool {
         match self.config.mode {
-            ParseFail | CompileFail => false,
+            ParseFail | CompileFail => self.props.compile_pass,
             RunPass => true,
             Ui => self.props.compile_pass,
             Incremental => {