From b219d729d75ed51d8a9ff02094c1245c7d187ecf Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 15 Sep 2020 11:31:25 +0200 Subject: [PATCH] tests: Crash if there are warnings in the daemon --- tests/integration-test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration-test b/tests/integration-test index 89d1aec..a4ca86b 100755 --- a/tests/integration-test +++ b/tests/integration-test @@ -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)