mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-22 13:38:11 +02:00
tests/fprintd: Ensure that the daemon doesn't crash or abort
An application terminating because of a signal like SIGSEGV, SIGABRT and friends, will exit with a signal number that is 128 + $SIGNAL_NUMBER, so let's ensure that the daemon has not been terminated because of a such error This makes even more sense with address sanitizer builds, as the daemon would exit with abort.
This commit is contained in:
parent
184e1bd4d0
commit
d72c802415
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ class FPrintdTest(dbusmock.DBusTestCase):
|
|||
self.daemon.terminate()
|
||||
except OSError:
|
||||
pass
|
||||
self.daemon.wait(timeout=2)
|
||||
self.assertLess(self.daemon.wait(timeout=2), 128)
|
||||
|
||||
self.daemon = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue