@@ -326,6 +326,8 @@ pub struct TestProps {
326326 pub force_host : bool ,
327327 // Check stdout for error-pattern output as well as stderr
328328 pub check_stdout : bool ,
329+ // Check stdout & stderr for output of run-pass test
330+ pub check_run_results : bool ,
329331 // For UI tests, allows compiler to generate arbitrary output to stdout
330332 pub dont_check_compiler_stdout : bool ,
331333 // For UI tests, allows compiler to generate arbitrary output to stderr
@@ -388,6 +390,7 @@ impl TestProps {
388390 build_aux_docs : false ,
389391 force_host : false ,
390392 check_stdout : false ,
393+ check_run_results : false ,
391394 dont_check_compiler_stdout : false ,
392395 dont_check_compiler_stderr : false ,
393396 no_prefer_dynamic : false ,
@@ -468,6 +471,10 @@ impl TestProps {
468471 self . check_stdout = config. parse_check_stdout ( ln) ;
469472 }
470473
474+ if !self . check_run_results {
475+ self . check_run_results = config. parse_check_run_results ( ln) ;
476+ }
477+
471478 if !self . dont_check_compiler_stdout {
472479 self . dont_check_compiler_stdout = config. parse_dont_check_compiler_stdout ( ln) ;
473480 }
@@ -712,6 +719,10 @@ impl Config {
712719 self . parse_name_directive ( line, "check-stdout" )
713720 }
714721
722+ fn parse_check_run_results ( & self , line : & str ) -> bool {
723+ self . parse_name_directive ( line, "check-run-results" )
724+ }
725+
715726 fn parse_dont_check_compiler_stdout ( & self , line : & str ) -> bool {
716727 self . parse_name_directive ( line, "dont-check-compiler-stdout" )
717728 }
0 commit comments