File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -359,10 +359,6 @@ impl TestProps {
359
359
self . forbid_output . push ( of) ;
360
360
}
361
361
362
- if !self . must_compile_successfully {
363
- self . must_compile_successfully = config. parse_must_compile_successfully ( ln) ;
364
- }
365
-
366
362
if !self . check_test_line_numbers_match {
367
363
self . check_test_line_numbers_match = config. parse_check_test_line_numbers_match ( ln) ;
368
364
}
@@ -371,6 +367,12 @@ impl TestProps {
371
367
self . run_pass = config. parse_run_pass ( ln) ;
372
368
}
373
369
370
+ if !self . must_compile_successfully {
371
+ // run-pass implies must_compile_sucessfully
372
+ self . must_compile_successfully =
373
+ config. parse_must_compile_successfully ( ln) || self . run_pass ;
374
+ }
375
+
374
376
if let Some ( rule) = config. parse_custom_normalization ( ln, "normalize-stdout" ) {
375
377
self . normalize_stdout . push ( rule) ;
376
378
}
You can’t perform that action at this time.
0 commit comments