Fix for #457 - issue with compiler Unicode output
This commit is contained in:
@@ -178,7 +178,7 @@ def run_cmds(compile_cmds, run_cmd, filename, expect_failure):
|
|||||||
if compile_failed:
|
if compile_failed:
|
||||||
sys.stdout.write("Compilation of test %s failed \n" % filename)
|
sys.stdout.write("Compilation of test %s failed \n" % filename)
|
||||||
if output != "":
|
if output != "":
|
||||||
sys.stdout.write("%s" % output)
|
sys.stdout.write("%s" % output.encode("utf-8"))
|
||||||
return (1, 0)
|
return (1, 0)
|
||||||
|
|
||||||
(return_code, output) = run_command(run_cmd)
|
(return_code, output) = run_command(run_cmd)
|
||||||
@@ -191,7 +191,7 @@ def run_cmds(compile_cmds, run_cmd, filename, expect_failure):
|
|||||||
(filename, "unexpectedly passed" if expect_failure else "failed",
|
(filename, "unexpectedly passed" if expect_failure else "failed",
|
||||||
return_code))
|
return_code))
|
||||||
if output != "":
|
if output != "":
|
||||||
sys.stdout.write("%s\n" % output)
|
sys.stdout.write("%s\n" % output.encode("utf-8"))
|
||||||
if surprise == True:
|
if surprise == True:
|
||||||
return (0, 1)
|
return (0, 1)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user