type-flags test: Force G_ENABLE_DIAGNOSTIC=1 to be set

Otherwise this test will succeed at build-time, but will fail when run
as an as-installed test via ginsttest-runner.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2022-11-12 20:56:53 +00:00 committed by Philip Withnall
parent 84284521b2
commit b13e12b363

View File

@ -141,6 +141,8 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_setenv ("G_ENABLE_DIAGNOSTIC", "1", TRUE);
g_test_add_func ("/type/flags/final", test_type_flags_final);
g_test_add_func ("/type/flags/deprecated", test_type_flags_deprecated);