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:
Marco Trevisan (Treviño)
2020-02-13 19:19:01 +01:00
committed by Bastien Nocera
parent 184e1bd4d0
commit d72c802415

View File

@ -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