@@ -326,6 +326,8 @@ pub struct TestProps {
326
326
pub force_host : bool ,
327
327
// Check stdout for error-pattern output as well as stderr
328
328
pub check_stdout : bool ,
329
+ // Check stdout & stderr for output of run-pass test
330
+ pub check_run_results : bool ,
329
331
// For UI tests, allows compiler to generate arbitrary output to stdout
330
332
pub dont_check_compiler_stdout : bool ,
331
333
// For UI tests, allows compiler to generate arbitrary output to stderr
@@ -388,6 +390,7 @@ impl TestProps {
388
390
build_aux_docs : false ,
389
391
force_host : false ,
390
392
check_stdout : false ,
393
+ check_run_results : false ,
391
394
dont_check_compiler_stdout : false ,
392
395
dont_check_compiler_stderr : false ,
393
396
no_prefer_dynamic : false ,
@@ -468,6 +471,10 @@ impl TestProps {
468
471
self . check_stdout = config. parse_check_stdout ( ln) ;
469
472
}
470
473
474
+ if !self . check_run_results {
475
+ self . check_run_results = config. parse_check_run_results ( ln) ;
476
+ }
477
+
471
478
if !self . dont_check_compiler_stdout {
472
479
self . dont_check_compiler_stdout = config. parse_dont_check_compiler_stdout ( ln) ;
473
480
}
@@ -712,6 +719,10 @@ impl Config {
712
719
self . parse_name_directive ( line, "check-stdout" )
713
720
}
714
721
722
+ fn parse_check_run_results ( & self , line : & str ) -> bool {
723
+ self . parse_name_directive ( line, "check-run-results" )
724
+ }
725
+
715
726
fn parse_dont_check_compiler_stdout ( & self , line : & str ) -> bool {
716
727
self . parse_name_directive ( line, "dont-check-compiler-stdout" )
717
728
}
0 commit comments