summaryrefslogtreecommitdiff
path: root/glib/tests/array-test.c
Commit message (Collapse)AuthorAgeFilesLines
...
* GBytes: A new type for an immutable set of bytes.Stef Walter2011-11-241-0/+33
| | | | | | | | | | | | | | | * Represents an immutable reference counted block of memory. * This is basically the internal glib GBuffer structure exposed, renamed, and with some additional capabilities. * The GBytes name comes from python3's immutable 'bytes' type * GBytes can be safely used as keys in hash tables, and have functions for doing so: g_bytes_hash, g_bytes_equal * GByteArray is a mutable form of GBytes, and vice versa. There are functions for converting from one to the other efficiently: g_bytes_unref_to_array() and g_byte_array_free_to_bytes() * Adds g_byte_array_new_take() to support above functions https://bugzilla.gnome.org/show_bug.cgi?id=663291
* Fix two tests for G_DEBUG=gc-friendlyDan Winship2011-10-111-5/+4
|
* Misc test coverage improvementsMatthias Clasen2011-10-051-1/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=660849
* Fix bug base in array-testMatthias Clasen2011-02-151-1/+1
|
* Improve byte array test coverageMatthias Clasen2010-07-311-0/+3
|
* Improve array test coverageMatthias Clasen2010-07-301-6/+455
|
* Hack up glib/tests/array-test to not actually malloc 2GDan Winship2010-06-241-8/+20
| | | | | | Fixes the test on machines where that allocation takes very long. https://bugzilla.gnome.org/show_bug.cgi?id=610784
* Fix the large array test to workMatthias Clasen2010-02-211-3/+5
| | | | Fix by Sven Herzberg, bug 568760
* Disable a failing test, tsk, tsk.Matthias Clasen2010-01-251-0/+2
|
* properly abort instead of looping infinitelySven Herzberg2010-01-131-0/+24
| | | | | | | | | Fixes: Bug 568760 - nautilus freezes due to a bug in garray.c:322 * glib/garray.c: increase the size of potential return values by using an unsigned result; properly check if we still handle valid size proposals, return the original request if there's no usable size left * tests/array-test.c: reproduce the error condition of the bug report
* Call element_free_func when shrinking array with g_ptr_array_set_sizeDan Winship2009-09-071-1/+3
|
* Bug 580450 – Reference counting and boxed types for arraysDavid Zeuthen2009-04-291-0/+172
| | | | | | Add reference counting and boxed types for GArray, GByteArray and GPtrArray. Signed-off-by: Matthias Clasen <mclasen@redhat.com>
* Move another testMatthias Clasen2008-07-201-0/+133
svn path=/trunk/; revision=7209