mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-09 05:58:27 +02:00
tests: Crash if there are warnings in the daemon
This commit is contained in:
parent
07ad49a0f8
commit
b219d729d7
1 changed files with 2 additions and 1 deletions
|
|
@ -76,10 +76,11 @@ class Tests(dbusmock.DBusTestCase):
|
|||
cls.local_daemon = False
|
||||
print('Testing installed system binary (%s)' % cls.daemon_path)
|
||||
|
||||
# fail on CRITICALs on client side
|
||||
# fail on CRITICALs on client and server side
|
||||
GLib.log_set_always_fatal(GLib.LogLevelFlags.LEVEL_WARNING |
|
||||
GLib.LogLevelFlags.LEVEL_ERROR |
|
||||
GLib.LogLevelFlags.LEVEL_CRITICAL)
|
||||
os.environ['G_DEBUG'] = 'fatal_warnings'
|
||||
|
||||
# set up a fake system D-BUS
|
||||
cls.test_bus = Gio.TestDBus.new(Gio.TestDBusFlags.NONE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue