Commit b98cbe7d authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Check stderr output before stdout output

parent 9951189c
...@@ -625,8 +625,8 @@ def simple_run( name, way, prog, args ): ...@@ -625,8 +625,8 @@ def simple_run( name, way, prog, args ):
check_hp = my_rts_flags.find("-h") != -1 check_hp = my_rts_flags.find("-h") != -1
if getTestOpts().ignore_output or (check_stdout_ok(name) and if getTestOpts().ignore_output or (check_stderr_ok(name) and
check_stderr_ok(name) and check_stdout_ok(name) and
(not check_hp or check_hp_ok(name))): (not check_hp or check_hp_ok(name))):
return 'pass' return 'pass'
else: else:
...@@ -722,8 +722,8 @@ def interpreter_run( name, way, extra_hc_opts, compile_only, top_mod ): ...@@ -722,8 +722,8 @@ def interpreter_run( name, way, extra_hc_opts, compile_only, top_mod ):
# ToDo: if the sub-shell was killed by ^C, then exit # ToDo: if the sub-shell was killed by ^C, then exit
if getTestOpts().ignore_output or (check_stdout_ok(name) and if getTestOpts().ignore_output or (check_stderr_ok(name) and
check_stderr_ok(name)): check_stdout_ok(name)):
return 'pass' return 'pass'
else: else:
return 'fail' return 'fail'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment