[glib/wip/smcv/deprecated-prop-followup: 2/5] gio/tests: Disable deprecation warnings where necessary




commit 25d21edb32bec81d4aca2891c65c77f30354816e
Author: Simon McVittie <smcv collabora com>
Date:   Tue Sep 13 11:36:04 2022 +0100

    gio/tests: Disable deprecation warnings where necessary
    
    The defaultvalue test sets all properties, even the deprecated ones.
    
    Signed-off-by: Simon McVittie <smcv collabora com>

 gio/tests/defaultvalue.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gio/tests/defaultvalue.c b/gio/tests/defaultvalue.c
index 543b3e4910..f99f98b283 100644
--- a/gio/tests/defaultvalue.c
+++ b/gio/tests/defaultvalue.c
@@ -193,6 +193,9 @@ main (int argc, char **argv)
   g_setenv ("GIO_USE_VFS", "local", TRUE);
   g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
 
+  /* Disable deprecation warnings when we poke at deprecated properties */
+  g_setenv ("G_ENABLE_DIAGNOSTIC", "0", TRUE);
+
   g_test_init (&argc, &argv, NULL);
 
   /* Create one test bus for all tests, as we have a lot of very small


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