Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Thibault Saunier
gst-devtools
Commits
7befe3d0
Commit
7befe3d0
authored
Jan 15, 2019
by
Thibault Saunier
🌵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
validate:launcher: Display unix nickname of signals leading to test failure
parent
5692f8d7
Pipeline
#15052
passed with stages
in 14 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
validate/launcher/baseclasses.py
validate/launcher/baseclasses.py
+10
-7
No files found.
validate/launcher/baseclasses.py
View file @
7befe3d0
...
...
@@ -61,9 +61,10 @@ TIMEOUT_FACTOR = float(os.environ.get("TIMEOUT_FACTOR", 1))
VALGRIND_ERROR_CODE
=
20
VALIDATE_OVERRIDE_EXTENSION
=
".override"
COREDUMP
_SIGNALS
=
[
-
getattr
(
signal
,
s
)
for
s
in
[
EXITING
_SIGNALS
=
dict
([(
-
getattr
(
signal
,
s
),
s
)
for
s
in
[
'SIGQUIT'
,
'SIGILL'
,
'SIGABRT'
,
'SIGFPE'
,
'SIGSEGV'
,
'SIGBUS'
,
'SIGSYS'
,
'SIGTRAP'
,
'SIGXCPU'
,
'SIGXFSZ'
,
'SIGIOT'
]
if
hasattr
(
signal
,
s
)]
+
[
139
]
'SIGTRAP'
,
'SIGXCPU'
,
'SIGXFSZ'
,
'SIGIOT'
]
if
hasattr
(
signal
,
s
)])
EXITING_SIGNALS
.
update
({
139
:
"SIGSEGV"
})
class
Test
(
Loggable
):
...
...
@@ -280,11 +281,11 @@ class Test(Loggable):
self
.
debug
(
"%s returncode: %s"
,
self
,
self
.
process
.
returncode
)
if
self
.
process
.
returncode
==
0
:
self
.
set_result
(
Result
.
PASSED
)
elif
self
.
process
.
returncode
in
COREDUMP
_SIGNALS
:
elif
self
.
process
.
returncode
in
EXITING
_SIGNALS
:
self
.
add_stack_trace_to_logfile
()
self
.
set_result
(
Result
.
FAILED
,
"Application
crashed, return code:
%
d
"
%
(
self
.
process
.
returncode
))
"Application
exited with signal
%
s
"
%
(
EXITING_SIGNALS
[
self
.
process
.
returncode
]
))
elif
self
.
process
.
returncode
==
VALGRIND_ERROR_CODE
:
self
.
set_result
(
Result
.
FAILED
,
"Valgrind reported errors"
)
else
:
...
...
@@ -917,9 +918,11 @@ class GstValidateTest(Test):
result
,
msg
=
self
.
check_expected_timeout
(
expected_timeout
)
else
:
return
elif
self
.
process
.
returncode
in
COREDUMP
_SIGNALS
:
elif
self
.
process
.
returncode
in
EXITING
_SIGNALS
:
result
=
Result
.
FAILED
msg
=
"Application crashed, return code: %d"
%
(
self
.
process
.
returncode
)
msg
=
"Application exited with signal %s"
%
(
EXITING_SIGNALS
[
self
.
process
.
returncode
]
)
self
.
add_stack_trace_to_logfile
()
elif
self
.
process
.
returncode
==
VALGRIND_ERROR_CODE
:
msg
=
"Valgrind reported errors "
...
...
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