Commit fcde8d84 authored by Sebastian Graf's avatar Sebastian Graf Committed by GitHub

Merge pull request #51 from mj3-16/fix-infinite-a.out

Fix looping test regression due to a.out
parents 8d99b732 93d54ca9
...@@ -209,7 +209,7 @@ class JavaInfiniteLoopTest(BasicSyntaxTest): ...@@ -209,7 +209,7 @@ class JavaInfiniteLoopTest(BasicSyntaxTest):
return test_result return test_result
except SigKill as sig: except SigKill as sig:
if sig.retcode == signal.SIGXCPU: if sig.retcode == signal.SIGXCPU:
out, _, _, _ = self.env.run_command_till_timeout("./" + base_filename, timeout=1) out, _, _, _ = self.env.run_command_till_timeout("./a.out", timeout=1)
test_result.add_long_text("Output", out.decode()) test_result.add_long_text("Output", out.decode())
if self._has_output_file: if self._has_output_file:
out = out.decode().strip() out = out.decode().strip()
...@@ -245,4 +245,4 @@ class JavaInfiniteLoopTest(BasicSyntaxTest): ...@@ -245,4 +245,4 @@ class JavaInfiniteLoopTest(BasicSyntaxTest):
return test_result return test_result
TestCase.TEST_CASE_CLASSES[TestMode.compile_firm].append(JavaInfiniteLoopTest) TestCase.TEST_CASE_CLASSES[TestMode.compile_firm].append(JavaInfiniteLoopTest)
\ No newline at end of file
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