Imply must-compile-successfully in ui-tests when the run-pass flag is present.
This commit is contained in:
parent
5990b8b57c
commit
81b8db2180
@ -359,10 +359,6 @@ impl TestProps {
|
||||
self.forbid_output.push(of);
|
||||
}
|
||||
|
||||
if !self.must_compile_successfully {
|
||||
self.must_compile_successfully = config.parse_must_compile_successfully(ln);
|
||||
}
|
||||
|
||||
if !self.check_test_line_numbers_match {
|
||||
self.check_test_line_numbers_match = config.parse_check_test_line_numbers_match(ln);
|
||||
}
|
||||
@ -371,6 +367,12 @@ impl TestProps {
|
||||
self.run_pass = config.parse_run_pass(ln);
|
||||
}
|
||||
|
||||
if !self.must_compile_successfully {
|
||||
// run-pass implies must_compile_sucessfully
|
||||
self.must_compile_successfully =
|
||||
config.parse_must_compile_successfully(ln) || self.run_pass;
|
||||
}
|
||||
|
||||
if let Some(rule) = config.parse_custom_normalization(ln, "normalize-stdout") {
|
||||
self.normalize_stdout.push(rule);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user