Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
uqdwn
mjtest
Commits
fcde8d84
Commit
fcde8d84
authored
Dec 03, 2016
by
Sebastian Graf
Committed by
GitHub
Dec 03, 2016
Browse files
Merge pull request #51 from mj3-16/fix-infinite-a.out
Fix looping test regression due to a.out
parents
8d99b732
93d54ca9
Changes
1
Show whitespace changes
Inline
Side-by-side
mjtest/test/exec_tests.py
View file @
fcde8d84
...
...
@@ -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
()
...
...
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