[PATCH 2/5] tests: Set G_DEBUG environment variable

Michal Privoznik mprivozn at redhat.com
Fri Oct 2 09:22:07 UTC 2020


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 at redhat.com>
---
 tests/meson.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/meson.build b/tests/meson.build
index cb720f3afe..790033e243 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -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
-- 
2.26.2




More information about the libvir-list mailing list