mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
validate: check VALGRIND_ERROR_CODE in Test as well
We were doing it only in GstValidateTest which was overriding the default implementation.
This commit is contained in:
parent
9ad79ffcbc
commit
4f805422a7
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,8 @@ class Test(Loggable):
|
||||||
self.set_result(Result.TIMEOUT, "Application timed out", "timeout")
|
self.set_result(Result.TIMEOUT, "Application timed out", "timeout")
|
||||||
elif self.process.returncode == 0:
|
elif self.process.returncode == 0:
|
||||||
self.set_result(Result.PASSED)
|
self.set_result(Result.PASSED)
|
||||||
|
elif self.process.returncode == VALGRIND_ERROR_CODE:
|
||||||
|
self.set_result(Result.FAILED, "Valgrind reported errors")
|
||||||
else:
|
else:
|
||||||
self.set_result(Result.FAILED,
|
self.set_result(Result.FAILED,
|
||||||
"Application returned %d" % (self.process.returncode))
|
"Application returned %d" % (self.process.returncode))
|
||||||
|
|
Loading…
Reference in a new issue