various tests: do not provoke SIGTRAP with -m no-undefined
[platform/upstream/glib.git] / glib / tests / error.c
index f483092..66ec6e0 100644 (file)
@@ -3,6 +3,9 @@
 static void
 test_overwrite (void)
 {
+  if (!g_test_undefined ())
+    return;
+
   if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
     {
       GError *error;