mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
tests: Fail test if return code is less than 0
This means that the application received a signal.
This commit is contained in:
@ -252,7 +252,9 @@ class FPrintdTest(dbusmock.DBusTestCase):
|
|||||||
self.daemon.terminate()
|
self.daemon.terminate()
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
self.assertLess(self.daemon.wait(timeout=2), 128)
|
self.daemon.wait(timeout=2)
|
||||||
|
self.assertLess(self.daemon.returncode, 128)
|
||||||
|
self.assertGreaterEqual(self.daemon.returncode, 0)
|
||||||
|
|
||||||
self.daemon = None
|
self.daemon = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user