summaryrefslogtreecommitdiff
path: root/glib/tests/slice.c
Commit message (Collapse)AuthorAgeFilesLines
* glib/tests: Drop debug build of slice testNatanael Copa2023-01-251-64/+0
|
* gtestutils: Add G_TEST_SUBPROCESS_DEFAULT, G_TEST_TRAP_DEFAULTSimon McVittie2022-06-231-2/+2
| | | | | | | This makes calls to test subprocesses with default behaviour more self-documenting. Signed-off-by: Simon McVittie <smcv@collabora.com>
* tests: Drop unnecessary volatile qualifiers from testsPhilip Withnall2020-11-201-1/+1
| | | | | | | | | These variables were already (correctly) accessed atomically. The `volatile` qualifier doesn’t help with that. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #600
* Fix signedness warnings in glib/tests/slice.cEmmanuel Fleury2020-11-171-1/+1
| | | | | | | | | | glib/tests/slice.c: In function ‘test_allocate’: glib/tests/slice.c:146:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 146 | for (i = 0; i < G_N_ELEMENTS(threads); i++) | ^ glib/tests/slice.c:149:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 149 | for (i = 0; i < G_N_ELEMENTS(threads); i++) | ^
* Drop g_slice_set_config testsMatthias Clasen2015-09-121-21/+0
| | | | | With g_quark_init, we are now calling GSlice from a constructor (this was already the case when linking against gobject).
* tests: Remove a compiler warningEmmanuele Bassi2014-02-021-1/+1
|
* glib/tests: Fix non-debug build of slice testRico Tzschichholz2014-01-041-0/+4
| | | | In addition to e013cf9cad56e919af2f057eb52d58371483a6f8
* Improve GSlice test coverageMatthias Clasen2014-01-011-0/+150
|
* Simplify subprocesses in testsMatthias Clasen2013-12-151-8/+6
| | | | | Use the new way of running tests in a subprocess without registering extra 'subprocess' test cases where appropriate.
* tests/slice: use G_GNUC_BEGIN_IGNORE_DEPRECATIONSDan Winship2013-05-131-1/+1
| | | | rather than implementing it by hand
* tests: port from g_test_trap_subprocess() to g_test_trap_fork()Dan Winship2013-05-131-6/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679683
* Revert "tests: port from g_test_trap_subprocess() to g_test_trap_fork()"Matthias Clasen2012-12-191-10/+7
| | | | This reverts commit ea06ec80634ff8f22882f3bc92effb10ac294e41.
* tests: port from g_test_trap_subprocess() to g_test_trap_fork()Dan Winship2012-12-191-7/+10
| | | | | | (or, in a few cases, to g_test_expect_message()) https://bugzilla.gnome.org/show_bug.cgi?id=679683
* Deprecated GSlice config APIMatthias Clasen2012-08-061-0/+3
| | | | | | | | This was marked as 'internal debugging' in the headers, and should have never been made public. As a first step to repair this, deprecate it. https://bugzilla.gnome.org/show_bug.cgi?id=680831
* various tests: do not provoke SIGTRAP with -m no-undefinedSimon McVittie2011-12-271-0/+3
| | | | | | | | | | | Some of the GLib tests deliberately provoke warnings (or even fatal errors) in a forked child. Normally, this is fine, but under valgrind it's somewhat undesirable. We do want to follow fork(), so we can check for leaks in child processes that exit gracefully; but we don't want to be told about "leaks" in processes that are crashing, because there'd be no point in cleaning those up anyway. https://bugzilla.gnome.org/show_bug.cgi?id=666116
* Mark some functions 'static' in glib/testsRyan Lortie2011-10-161-1/+1
| | | | | | This has uncovered two unused testcases in option-context.c. They are currently broken and require more investigation (which is probably why they are unused).
* Test that g_slice_set_config() worksRyan Lortie2011-10-041-0/+28
For a while it didn't work, due to the ctor-based initialisation of gslice. https://bugzilla.gnome.org/show_bug.cgi?id=660887