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:
Guillaume Desmottes 2015-03-26 13:59:30 +01:00
parent 9ad79ffcbc
commit 4f805422a7

View file

@ -185,6 +185,8 @@ class Test(Loggable):
self.set_result(Result.TIMEOUT, "Application timed out", "timeout")
elif self.process.returncode == 0:
self.set_result(Result.PASSED)
elif self.process.returncode == VALGRIND_ERROR_CODE:
self.set_result(Result.FAILED, "Valgrind reported errors")
else:
self.set_result(Result.FAILED,
"Application returned %d" % (self.process.returncode))