Skip to content
GitLab
Menu
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
Show whitespace changes
Inline
Side-by-side
mjtest/test/exec_tests.py
View file @
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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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