diff --git a/gobject/tests/object.c b/gobject/tests/object.c index 2519b0034..e1a98c72c 100644 --- a/gobject/tests/object.c +++ b/gobject/tests/object.c @@ -122,6 +122,11 @@ test_object_constructor_infanticide (void) GObject *obj; int i; +#ifndef G_ENABLE_DEBUG + g_test_skip ("skip tests that rely on debug-only warnings"); + return; +#endif + g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=661576"); for (i = 0; i < 1000; i++)