]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Set G_DEBUG environment variable
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 2 Oct 2020 08:34:11 +0000 (10:34 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 2 Oct 2020 10:48:55 +0000 (12:48 +0200)
With us switching to glib more and more it is easy to get things
wrong (as can be seen in the previous commit). Set G_DEBUG
variable to "fatal-warnings" which causes GLib to abort the
program at the first call to g_warning() or g_critical().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/meson.build

index cb720f3afe2d6a6f867f73d3cc2a68d895bedead..790033e243346a52c9d2bef0aff101f9c6aa0abc 100644 (file)
@@ -36,6 +36,7 @@ tests_env = [
   'abs_top_srcdir=@0@'.format(meson.source_root()),
   'LC_ALL=C',
   'LIBVIRT_AUTOSTART=0',
+  'G_DEBUG=fatal-warnings',
 ]
 
 if use_expensive_tests