mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
testsuite: Make tests not fail in !debug builds
Some of our tests rely on on warning that only occur in debug builds. Skip them in non-debug builds. Fixes: #2656
This commit is contained in:
parent
43ac055a46
commit
3db1d260ee
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user