Commit 700a20d1 authored by Simon Marlow's avatar Simon Marlow
Browse files

don't try to run hp2ps if the program failed with exit(>127)

parent 4bd84f7b
......@@ -701,7 +701,8 @@ def simple_run( name, way, prog, args ):
if getTestOpts().ignore_output or (check_stderr_ok(name) and
check_stdout_ok(name) and
(not check_hp or check_hp_ok(name))):
(not check_hp or exit_code > 127 or check_hp_ok(name))):
# exit_code > 127 probably indicates a crash, so don't try to run hp2ps.
return 'pass'
return 'fail'
Supports Markdown
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