summaryrefslogtreecommitdiff
path: root/tests/asyncqueue-test.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: replace most g_print() with g_printerr()Simon McVittie2015-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | I searched all files that mention g_test_run, and replaced most g_print() calls. This avoids interfering with TAP. Exceptions: * gio/tests/network-monitor: a manual mode that is run by "./network-monitor --watch" is unaffected * glib/gtester.c: not a test * glib/gtestutils.c: not a test * glib/tests/logging.c: specifically exercising g_print() * glib/tests/markup-parse.c: a manual mode that is run by "./markup-parse --cdata-as-text" is unaffected * glib/tests/testing.c: specifically exercising capture of stdout in subprocesses * glib/tests/utils.c: captures a subprocess's stdout * glib/tests/testglib.c: exercises an assertion failure in g_print() Bug: https://bugzilla.gnome.org/show_bug.cgi?id=725981 Reviewed-by: Colin Walters <walters@verbum.org> Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* asyncqueue-test: Fix leaks in testsStef Walter2013-11-101-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=711751
* Remove a bunch of lingering g_thread_init()Ryan Lortie2013-05-311-2/+0
| | | | | | | | | After this patch, there is but one remaining use of g_thread_init(), which is in tests/slice-threadinit.c, a testcase dedicated to testing the functionality of gslice across a g_thread_init() boundary. This testcase is pretty meaningless these days... probably we should delete it.
* Make threads mandatoryDan Winship2011-09-091-2/+0
| | | | | | | | | | G_THREADS_ENABLED still exists, but is always defined. It is still possible to use libglib without threads, but gobject (and everything above it) is now guaranteed to be using threads (as, in fact, it was before, since it was accidentally impossible to compile with --disable-threads). https://bugzilla.gnome.org/show_bug.cgi?id=616754
* asyncqueue: improve test coverageMatthias Clasen2011-06-191-3/+54
|
* Bug 553447 $(Q#|(B g_assert_no_error()Dan Winship2008-09-271-1/+1
| | | | | | | | | | | | | | | | | * glib/gtestutils.h (g_assert_no_error, g_assert_error): Macros to assert that a GError is not set, or else is set to a particular error. * glib/gtestutils.c (g_assertion_message_error): utility for those macros * glib/tests/keyfile.c: * tests/asyncqueue-test.c: * tests/bookmarkfile-test.c: * tests/convert-test.c: * tests/file-test.c: Use g_assert_error/g_assert_no_error svn path=/trunk/; revision=7555
* Updated to test _sort, _sort_with_data, _insert_sorted andMartyn James Russell2006-02-191-36/+50
| | | | | | | * tests/asyncqueue-test.c: * tests/list-test.c: * tests/slist-test.c: Updated to test _sort, _sort_with_data, _insert_sorted and _insert_sorted_with_data API.
* Fix the assert to not always trigger. (#326558, Daichi Kawahata)Matthias Clasen2006-01-121-3/+1
| | | | | | | | 2006-01-12 Matthias Clasen <mclasen@redhat.com> * tests/asyncqueue-test.c (main): Fix the assert to not always trigger. (#326558, Daichi Kawahata)
* Set error to NULL.Matthias Clasen2006-01-111-1/+1
| | | | | | 2006-01-11 Matthias Clasen <mclasen@redhat.com> * tests/asyncqueue-test.c: Set error to NULL.
* - Call g_queue_insert_sorted() instead of duplicating the code. - CallMartyn James Russell2005-12-071-4/+4
| | | | | | | | | | | | | * glib/gasyncqueue.c: - Call g_queue_insert_sorted() instead of duplicating the code. - Call g_queue_sort() instead of duplicating the code. - Invert sort function results to make sure the same sort function gives the same results across glist, gslist, gqueue and gasyncqueue. * tests/asyncqueue-test.c: - Updated the sort function to reflect the example in the documentation for gasyncqueue.c.
* - Added support for sorting async queues by with _push_sorted(),Martyn James Russell2005-12-051-0/+182
* docs/reference/glib/glib-sections.txt: * glib/gasyncqueue.[ch]: - Added support for sorting async queues by with _push_sorted(), _push_sorted_unlocked(), _sort() and _sort_unlocked() (#323047). * tests/Makefile.am: * tests/asyncqueue-test.c: - Added test case for gasyncqueue.c