commit e8879d3398334ba46e8ae8e3f278063f89409331
Author: Sven Herzberg <herzi@gnome-de.org>
Date:   Tue Jan 26 15:29:12 2010 +0100

    let the test pass even if the memory allocation failed
    
    Fixes: Bug 568760 - nautilus freezes due to a bug in garray.c:322
    
    * glib/tests/array-test.c: also accept the test as being passed if the
      memory allocation fails; this test is supposed to check for an
      infinite loop only, not for systems with much memory

diff --git a/glib/tests/array-test.c b/glib/tests/array-test.c
index 6f66b22..2b90ba8 100644
--- a/glib/tests/array-test.c
+++ b/glib/tests/array-test.c
@@ -115,7 +115,9 @@ array_large_size (void)
       g_array_set_size (array, 1073750016);
       exit (0); /* success */
     }
-  g_test_trap_assert_passed ();
+
+  g_assert (g_test_trap_has_passed () ||
+            g_test_trap_assert_stderr ("*failed to allocate 2147483648 bytes*"));
 
   g_array_free (array, TRUE);
 }
