Run tests with G_ENABLE_DIAGNOSTIC=1
-
!2912 (merged) (prerequisite for this)
-
tests: Move common test environment variables to top level
-
gio/tests: Disable deprecation warnings where necessary
The defaultvalue test sets all properties, even the deprecated ones.
-
gobject/tests: Exercise a floating object reaching last-unref
This was previously exercised (probably by mistake) in gobject/tests/type.c, but without making any assertions about what happened, and the test would fail under G_ENABLE_DIAGNOSTIC if GLib was compiled with debug enabled.
-
gobject/tests: Don't unref a floating object reference by mistake
This goes undiagnosed under normal circumstances, but is a critical warning (which is fatal by default) under G_ENABLE_DIAGNOSTIC. This is a programming error, so we should only exercise it under g_test_undefined(), and only in a test that is intentionally doing this (as in the previous commit).
-
tests: Run all tests with deprecated property warnings enabled
The tests that functionally rely on G_ENABLE_DIAGNOSTIC=1 still set it explicitly, so that they will behave as expected when run as installed-tests or manually.