Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
uwdkn
mjtest
Commits
93d54ca9
Commit
93d54ca9
authored
Dec 03, 2016
by
Sebastian Graf
Browse files
Fix looping test regression due to a.out
parent
830c538f
Changes
1
Hide whitespace changes
Inline
Side-by-side
mjtest/test/exec_tests.py
View file @
93d54ca9
...
...
@@ -209,7 +209,7 @@ class JavaInfiniteLoopTest(BasicSyntaxTest):
return
test_result
except
SigKill
as
sig
:
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
())
if
self
.
_has_output_file
:
out
=
out
.
decode
().
strip
()
...
...
@@ -245,4 +245,4 @@ class JavaInfiniteLoopTest(BasicSyntaxTest):
return
test_result
TestCase
.
TEST_CASE_CLASSES
[
TestMode
.
compile_firm
].
append
(
JavaInfiniteLoopTest
)
\ No newline at end of file
TestCase
.
TEST_CASE_CLASSES
[
TestMode
.
compile_firm
].
append
(
JavaInfiniteLoopTest
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment