Commit e98e1c03 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-07-25 10:17:39 by simonmar]

Check exit codes from GHCi runs (we were ignoring them before).

merge to STABLE
parent 16eadeac
......@@ -538,7 +538,7 @@ def simple_run( name, prog, args, ignore_output_files ):
# run the command
result = runCmd(cmd)
exit_code = result >> 8;
exit_code = result >> 8
signal = result & 0xff
# check the exit code
......@@ -612,10 +612,13 @@ def interpreter_run( name, way, extra_hc_opts, compile_only, top_mod ):
result = runCmd(cmd)
# if result != 0 and not should_fail:
# actual_stderr = qualify(name, 'interp.stderr')
# if_verbose(1,'Compile failed (status ' + `result` + ') errors were:')
# if_verbose(1,open(actual_stderr).read())
exit_code = result >> 8
signal = result & 0xff
# check the exit code
if exit_code != testopts.exit_code:
print 'Wrong exit code (expected', testopts.exit_code, ', actual', exit_code, ')'
return 'fail'
# split the stdout into compilation/program output
split_file(in_testdir(outname), delimiter,
......
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