Commit 341fb062 authored by Johannes Bechberger's avatar Johannes Bechberger

Fix #72

parent d8ecfb73
...@@ -162,7 +162,6 @@ class JavaExecTest(BasicSyntaxTest): ...@@ -162,7 +162,6 @@ class JavaExecTest(BasicSyntaxTest):
raise raise
out = out.decode() out = out.decode()
if self.type == self.MODE and self.env.mode == self.MODE: if self.type == self.MODE and self.env.mode == self.MODE:
test_result.add_long_text("Output", out)
if exp_out.strip() != out.strip(): if exp_out.strip() != out.strip():
test_result.incorrect_msg = "incorrect output" test_result.incorrect_msg = "incorrect output"
test_result.has_succeeded = False test_result.has_succeeded = False
...@@ -173,6 +172,8 @@ class JavaExecTest(BasicSyntaxTest): ...@@ -173,6 +172,8 @@ class JavaExecTest(BasicSyntaxTest):
test_result.add_file("Source file", self.preprocessed_file) test_result.add_file("Source file", self.preprocessed_file)
if self._input_file: if self._input_file:
test_result.add_file("Input file", self.file) test_result.add_file("Input file", self.file)
else:
test_result.add_long_text("Output", out)
os.chdir(cwd) os.chdir(cwd)
return test_result return test_result
return BasicTestResult(self, rtcode, out, err.decode()) return BasicTestResult(self, rtcode, out, err.decode())
......
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