[glib/glib-2-22] Fix the large array test to work
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-22] Fix the large array test to work
- Date: Tue, 16 Mar 2010 11:07:03 +0000 (UTC)
commit 153521468709891e49030e200422c0520921a9f5
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 21 16:29:15 2010 -0500
Fix the large array test to work
Fix by Sven Herzberg, bug 568760
(cherry picked from commit dcdc409cd88f6d47eb54a7eee528be6c8667d394)
glib/tests/array-test.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/glib/tests/array-test.c b/glib/tests/array-test.c
index 949120b..6bfe46b 100644
--- a/glib/tests/array-test.c
+++ b/glib/tests/array-test.c
@@ -115,7 +115,11 @@ array_large_size (void)
g_array_set_size (array, 1073750016);
exit (0); /* success */
}
- g_test_trap_assert_passed ();
+
+ if (!g_test_trap_has_passed ())
+ {
+ g_test_trap_assert_stderr ("*failed to allocate 2147483648 bytes*");
+ }
g_array_free (array, TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]