[gtk/matthiasc/for-master: 11/16] testsuite: Don't pass GDK_DEBUG for release builds



commit 6a7580e6904d41189b06d51797bd66d2ee968d85
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 28 11:13:59 2020 -0400

    testsuite: Don't pass GDK_DEBUG for release builds
    
    The debug env vars are ignored in release builds,
    and may spew warnings about that fact that break
    tests.

 testsuite/meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/meson.build b/testsuite/meson.build
index b7b0061ae3..47ce9a6134 100644
--- a/testsuite/meson.build
+++ b/testsuite/meson.build
@@ -9,12 +9,15 @@ diff = find_program('diff', required: true)
 common_env = [
   'GIO_USE_VOLUME_MONITOR=unix',
   'GSETTINGS_BACKEND=memory',
-  'GDK_DEBUG=default-settings',
   'GTK_CSD=1',
   'G_ENABLE_DIAGNOSTIC=0',
   'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
 ]
 
+if get_option('debug')
+  common_env += [ 'GDK_DEBUG=default-settings' ]
+endif
+
 add_test_setup ('x11',
                 is_default: true,
                 env: common_env + [


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]