summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2011-10-18tests/gobject: Use G_VALUE_INITJavier Jardón1-5/+5
2011-10-15tests/Makefile.am: remove unused LDFLAGS variableRyan Lortie1-1/+0
2011-10-13tests: disable deprecation warnings for testsRyan Lortie3-2/+5
We need to test deprecated functions, so don't warn us for doing so.
2011-10-04Remove g_mutex_new()/g_cond_new() in testcasesRyan Lortie6-66/+49
These were the last users of the dynamic allocation API. Keep the uses in glib/tests/mutex.c since this is actually meant to test the API (which has to continue working, even if it is deprecated). https://bugzilla.gnome.org/show_bug.cgi?id=660739
2011-10-04drop errorcheck mutex testRyan Lortie3-133/+0
We don't support errorchecking mutexes in GLib anymore.
2011-10-02locks: drop _INIT macrosRyan Lortie1-1/+1
All locks are now zero-initialised, so we can drop the G_*_INIT macros for them. Adjust various users around GLib accordingly and change the docs. https://bugzilla.gnome.org/show_bug.cgi?id=659866
2011-10-02Don't use g_thread_foreach in testsMatthias Clasen1-27/+3
2011-10-02tests: Use G_VALUE_INITJavier Jardón2-11/+11
2011-09-22gvalue: Add explicitly signed g_value_get_schar() and g_value_set_schar()Colin Walters2-0/+17
The documentation for G_TYPE_CHAR says: "The type designated by G_TYPE_CHAR is unconditionally an 8-bit signed integer." However the return value for g_value_get_char() was just "char" which in C has an unspecified signedness; on e.g. x86 it's signed (which matches the GType), but on e.g. PowerPC or ARM, it's not. We can't break the old API, so we need to suck it up and add new API. Port most internal users, but keep some tests of the old API too. https://bugzilla.gnome.org/show_bug.cgi?id=659870
2011-09-21Deprecate g_thread_create_full()Ryan Lortie1-2/+2
Replace it with g_thread_create_with_stack_size() and a real function implementation of g_thread_create(). Modify a testcase that was calling g_thread_create_full() inappropriately (it was using the default values anyway).
2011-09-21Stop using GStaticMutex in two testcasesRyan Lortie1-7/+7
2011-09-09Make threads mandatoryDan Winship5-20/+1
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
2011-09-04update .gitignoreDan Winship1-0/+1
2011-08-29Spelling fixesMatthias Clasen2-3/+3
Spelling fixes in comments and docs, provided by Kjartan Maraas in bug 657336.
2011-08-21Add a quick utility to test datetime formattingMatthias Clasen2-1/+46
2011-08-14Add g_mkdtemp in the spirit of g_mkstempMatthias Clasen1-0/+52
At the same time, also add g_mkdtemp_full and g_dir_make_tmp variants. The patch also unifies the unique-name-generating code for all variants of mkstemp and mkdtemp and adds tests for the new functions. Based on patches by Paolo Bonzini, http://bugzilla.gnome.org/show_bug.cgi?id=118563
2011-07-20wait longer in threadpool test caseRyan Lortie1-3/+10
If we are going to fail an assert, wait for a bit longer before doing so (up to 5 seconds, if needed). This is a long-standing Debian patch to fix build failures on really slow machines.
2011-06-19asyncqueue: improve test coverageMatthias Clasen1-3/+54
2011-06-13Drop a few more G_CONST_RETURNRyan Lortie1-1/+1
2011-06-06Test runtime dir getterMatthias Clasen1-4/+17
2011-06-06Remove deprecated atomic functions from testsMatthias Clasen2-7/+7
2011-05-27Don't hardcode path to true(1).Antoine Jacoutot1-1/+1
true(1) is not always installed under /bin so leave system() find it in the PATH. https://bugzilla.gnome.org/show_bug.cgi?id=651219
2011-05-03Only remove the lines that are no longer neededMatthias Clasen1-3/+0
2011-05-03Revert "[build] Remove stale LDADD lines from tests/Makefile.am to allow build"Matthias Clasen1-0/+35
This reverts commit b0874ce28e910121fb2d94f6f9183bfdc08e8eaf.
2011-05-02Add back an erroneously-removed line to tests/Makefile.amDan Winship1-0/+1
2011-05-02Fix compiler warningsDan Winship5-8/+4
2011-05-02[build] Remove stale LDADD lines from tests/Makefile.am to allow buildBehdad Esfahbod1-35/+0
Automake 1.11 wasn't happy.
2011-05-01Fix make checkMatthias Clasen1-1/+1
g_thread_init() causes a hash table to be allocated (in read_aliases). Since hash tables are now a bit larger, we need to bump one of the probe sizes to avoid our probe slice being used for the aliases hash table.
2011-01-22Update Unicode tests to 6.02.27.92Matthias Clasen2-8/+49
2010-12-28Adapt testglib.c to GRelation deprecationMatthias Clasen1-1/+5
Patch by Chun-wei Fan, bug https://bugzilla.gnome.org/show_bug.cgi?id=637858
2010-12-27Move ifaceproperties test to gobject/tests/Matthias Clasen2-649/+0
2010-12-27Convert ifaceproperties.c to test frameworkMatthias Clasen1-119/+260
Also add a test that checks warnings for failure to implement interface properties. See https://bugzilla.gnome.org/show_bug.cgi?id=637738
2010-10-07Don't call close() on -1Tor Lillqvist1-1/+2
Of course, a proper implementation of close() will just ignore an invalid parameter silently, and set errno. But apparently the "debug" version of the Microsoft C library generates some noise in this case. So avoid that. Thanks to John Emmas for reporting.
2010-08-26Improve parsing of date-only iso8601 stringsJens Georg1-0/+4
2010-08-19Fix misc compiler warnings in (mostly) test programsDan Winship1-1/+1
2010-08-06Replace -I with $(glib_INCLUDES) and friendsRyan Lortie3-12/+3
Stop using ad hoc -I in all of our Makefile.am. Use the new variables instead.
2010-08-05Add $(top_builddir)/glib to includespaul3-0/+3
This is required to find glibconfig.h during srcdir != builddir builds
2010-08-03fix the completion testMatthias Clasen1-1/+0
2010-08-03improve completion test coverageMatthias Clasen1-0/+9
2010-08-03Move bookmarkfile tests to the test frameworkMatthias Clasen23-605/+2
2010-07-30Move markup parse tests to the test frameworkMatthias Clasen65-665/+2
2010-07-30Add some more GFile testsMatthias Clasen2-222/+0
2010-07-30Move markup escape tests to test frameworkMatthias Clasen2-135/+0
2010-07-30Don't leak in converter testMatthias Clasen2-310/+0
2010-07-30Add some volume monitor testsMatthias Clasen2-299/+0
Although not much of this is easily testable.
2010-07-30Move queue tests to the test frameworkMatthias Clasen2-964/+0
2010-07-22notify: Add tests for threadsafe object notifiesOlivier Crête4-0/+377
https://bugzilla.gnome.org/show_bug.cgi?id=166020
2010-07-05Move uri tests to the test frameworkMatthias Clasen2-480/+1
2010-07-05Move tree tests to the test frameworkMatthias Clasen2-248/+0
2010-07-05Move slist tests to the test frameworkMatthias Clasen2-207/+0