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>
This commit is contained in:
Simon McVittie 2022-09-13 11:36:04 +01:00
parent 88e160dfe4
commit 25d21edb32

View File

@ -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