mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-08 05:28:07 +02:00
tests: Ensure the daemon exits with no error
We did terminate the daemon and waited for it, but we did not ensure that it was terminated with no error. This is particularly a problem when we are running the sanitizers or valgrind, because we didn't catch any error. Thus... We were living with some leaks that we never caught :)
This commit is contained in:
parent
d1a6e92582
commit
e1c83e8b27
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ class Tests(dbusmock.DBusTestCase):
|
|||
self.daemon.terminate()
|
||||
except OSError:
|
||||
pass
|
||||
self.daemon.wait(timeout=3000)
|
||||
self.assertEqual(self.daemon.wait(timeout=3000), 0)
|
||||
|
||||
self.daemon = None
|
||||
self.proxy = None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue