projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8246bf4
)
Improve byte array test coverage
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 31 Jul 2010 04:55:57 +0000
(
00:55
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 31 Jul 2010 04:55:57 +0000
(
00:55
-0400)
glib/tests/array-test.c
patch
|
blob
|
history
diff --git
a/glib/tests/array-test.c
b/glib/tests/array-test.c
index
bb7fe30
..
c570a8e
100644
(file)
--- a/
glib/tests/array-test.c
+++ b/
glib/tests/array-test.c
@@
-314,6
+314,7
@@
pointer_array_add (void)
gpointer *segment;
gparray = g_ptr_array_sized_new (1000);
+
for (i = 0; i < 10000; i++)
g_ptr_array_add (gparray, GINT_TO_POINTER (i));
@@
-552,6
+553,8
@@
byte_array_prepend (void)
gint i;
gbarray = g_byte_array_new ();
+ g_byte_array_set_size (gbarray, 1000);
+
for (i = 0; i < 10000; i++)
g_byte_array_prepend (gbarray, (guint8*) "abcd", 4);