[glib/wip/smcv/deprecated-prop-followup: 2/3] tests: Disable deprecation warnings where necessary
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/smcv/deprecated-prop-followup: 2/3] tests: Disable deprecation warnings where necessary
- Date: Tue, 13 Sep 2022 10:36:45 +0000 (UTC)
commit c8888511a65ad468e9e23ee5ca27ce1ca16df871
Author: Simon McVittie <smcv collabora com>
Date: Tue Sep 13 11:36:04 2022 +0100
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]