glib/glib/tests
Philip Withnall b7ffc07d98 tests: Improve error handling for fileutils test
The test_stdio_wrappers() test will spuriously fail if the mkdir-test
directory already exists and is non-empty, which can happen if a
previous test run has failed and left a coredump file in the directory.
Tighten up the error checking around the pre-test rmdir() call to catch
this failure.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=782237
2017-05-08 11:19:46 +01:00
..
bookmarks Improve GBookmarkFile test coverage 2014-01-01 17:59:22 -05:00
markups Add a few tests for G_MARKUP_TREAT_CDATA_AS_TEXT 2014-03-02 19:10:00 -05:00
.gitignore guuid: Add UUID helper functions to GLib 2017-02-06 14:40:38 +01:00
1bit-mutex.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
4096-random-bytes [REVERT] Bug 548612 – g_strstr_len() should use memmem when available 2008-08-28 23:03:24 +00:00
642026.c Assert threads are created in test 642026 2016-12-27 20:43:17 +01:00
array-test.c garray: Add g_ptr_array_find[_with_equal_func]() 2017-05-02 16:54:41 +01:00
asyncqueue.c Add tests for new GAsyncQueue api 2015-06-29 08:20:26 -07:00
atomic.c g_atomic_int_get, g_atomic_pointer_get: accept const arguments 2013-01-28 11:37:53 +00:00
autoptr.c Move GStrv typedef to glib.h instead of gobject.h 2015-09-22 11:18:30 -04:00
base64.c gbase64: Fix base-64 stepped encoding with small chunks 2017-03-23 15:34:11 +00:00
bitlock.c optimise bitlocks with new atomic operations 2011-05-28 17:39:12 -04:00
bookmarkfile.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
bookmarks.xbel Fix a typo 2010-07-10 23:56:45 -04:00
bytes.c gtestutils: add g_assert_cmpmem() 2015-08-31 13:59:48 -04:00
cache.c Updated FSF's address 2014-01-31 14:31:55 +01:00
checksum.c gchecksum: add SHA-384 support 2017-02-20 12:40:26 +01:00
collate.c Correct collation key generation on OS X 2017-03-08 22:37:29 -05:00
cond.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
convert.c Updated FSF's address 2014-01-31 14:31:55 +01:00
dataset.c GDataSet: Add more tests 2014-10-02 14:41:01 -04:00
date.c tests: Fix tests that fail with non-English locales 2015-06-29 22:49:17 +08:00
dir.c Add some GDir tests 2010-07-05 23:43:47 -04:00
echo-script spawn: Improve test coverage 2012-04-08 10:24:52 -04:00
echo-script.bat glib/tests/spawn-singlethread: Improve test for Windows 2013-11-11 22:38:36 +08:00
empty Improve test coverage 2011-02-13 23:49:19 -05:00
environment.c glib/tests/enviroment.c: Fix running on Windows 2013-11-27 08:01:46 +08:00
error.c gerror: Don't leak memory when overwrite warning 2013-11-10 22:40:08 +01:00
fileutils.c tests: Improve error handling for fileutils test 2017-05-08 11:19:46 +01:00
gdatetime.c gdatetime: Fix overflow checks when constructing from timestamps 2017-05-05 10:51:08 +01:00
guuid.c guuid: Remove support for curly braces and URN UUIDs 2017-02-06 14:40:38 +01:00
gvariant.c GVariant: Add a G_VARIANT_DICT_INIT macro 2016-07-16 21:41:16 -04:00
gwakeuptest.c glib/tests: Clean up inclusion of unistd.h 2013-11-04 22:52:02 +08:00
hash.c test repeated g_hash_table_remove_all calls 2015-08-28 14:15:54 -04:00
hmac.c ghmac: Add support for G_CHECKSUM_SHA384 to GHmac 2017-02-20 12:40:26 +01:00
hook.c Add some GHookList tests 2011-10-08 19:02:06 -04:00
hostutils.c Updated FSF's address 2014-01-31 14:31:55 +01:00
include.c glib/tests/include: port to gtester 2013-11-23 00:39:07 -05:00
keyfile.c glib/tests/keyfile: check return value of g_key_file_get_double is 0 for invalid values 2016-07-16 20:50:54 -04:00
keyfiletest.ini forgotten file 2010-07-07 22:03:02 -04:00
list.c gtestutils: Allow clean simple use of g_test_trap_subprocess() 2013-12-15 11:03:17 -05:00
logging.c Add g_log_variant(): structured log that accepts a GVariant 2016-09-09 09:07:50 -03:00
mainloop.c gmain: don't pass the same fd to g_poll() multiple times 2014-10-29 17:19:20 -04:00
Makefile.am guuid: Add UUID helper functions to GLib 2017-02-06 14:40:38 +01:00
mappedfile.c mappedfile test: permit ENODEV on /dev/null 2014-02-23 00:47:29 -05:00
markup-collect.c tests: add a ignore-qualified markup-collect case 2013-10-28 15:24:58 -07:00
markup-escape.c Add G_GNUC_PRINTF on all functions with format strings 2013-01-13 12:32:40 -05:00
markup-parse.c tests: Add an assertion to guard against unexpected flags 2016-08-13 10:28:24 +02:00
markup-subparser.c tests: Fix tests that fail with non-English locales 2015-06-29 22:49:17 +08:00
markup.c Add a test for g_markup_parse_context_get_element_stack 2014-01-01 17:59:21 -05:00
mem-overflow.c tests: Fix for non-GCC 2013-11-11 22:39:57 +08:00
mutex.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
node.c Updated FSF's address 2014-01-31 14:31:55 +01:00
once.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
option-argv0.c gtestutils: add "options" to g_test_init(), make option-argv0 use gtester 2013-11-23 00:43:45 -05:00
option-context.c Add a test for the previous fix 2016-09-12 22:28:35 -04:00
overflow.c tests: fix a test on 32-bit builds 2015-11-26 09:26:45 -05:00
pages.ini Add testcase for bug 640695 2011-01-27 23:07:53 -05:00
pattern.c Updated FSF's address 2014-01-31 14:31:55 +01:00
private.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
protocol.c Improve GIOChannel test coverage 2014-01-01 17:59:22 -05:00
queue.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
rand.c Add a test for the previous fix 2011-06-03 23:38:46 -04:00
rec-mutex.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
regex.c gregex: loosen behaviour testing 2016-08-16 10:41:46 +02:00
rwlock.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
scannerapi.c Updated FSF's address 2014-01-31 14:31:55 +01:00
search-utils.c Improve search utils test coverage 2013-11-28 16:01:23 -05:00
sequence.c sequence: fix style issue in previous commit 2015-10-15 13:07:27 -07:00
shell.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
slice.c Drop g_slice_set_config tests 2015-09-12 11:13:45 -04:00
slist.c tests: Fix GSList test to not dereference off the end of an array 2016-08-13 10:29:31 +02:00
sort.c Updated FSF's address 2014-01-31 14:31:55 +01:00
spawn-multithreaded.c Add G_SPAWN_DEFAULT to GSpawnFlags 2013-08-17 13:02:25 -04:00
spawn-singlethread.c glib/tests/spawn-singlethread: Improve test for Windows 2013-11-11 22:38:36 +08:00
strfuncs.c gstrfuncs: Add test for g_strjoinv() behaviour 2016-04-04 15:06:57 +02:00
string.c gtestutils: add g_assert_cmpmem() 2015-08-31 13:59:48 -04:00
test-printf.c Fix printf-tests on W32 by ifdefing the expected output 2014-08-02 12:31:09 +00:00
test-spawn-echo.c gthread: move test cases to glib/ 2011-10-16 19:08:59 -04:00
testing.c Revert "Add a test for expected messages with structured logging" 2016-08-07 08:07:42 +01:00
thread.c testsuite: include pthread.h in thread testfile 2016-05-14 04:59:39 +00:00
timeout.c glib/tests: Clean up inclusion of unistd.h 2013-11-04 22:52:02 +08:00
timer.c Drop locale-dependent timeval tests 2014-01-01 22:39:32 -05:00
tree.c Updated FSF's address 2014-01-31 14:31:55 +01:00
unicode.c unicode: Update to unicode 9.0.0 2016-09-21 18:31:04 +02:00
unix.c Improve glib-unix test coverage 2014-01-01 17:59:21 -05:00
uri.c Updated FSF's address 2014-01-31 14:31:55 +01:00
utf8-misc.c utf8: add unit test for g_utf8_make_valid 2017-03-04 19:59:37 +01:00
utf8-performance.c Reorganized utf8-performance tests 2015-09-05 13:14:11 -04:00
utf8-pointer.c Fix a corner-case in g_utf8_find_next_char 2016-07-16 21:34:21 -04:00
utf8-validate.c glib/tests/utf8-validate: test known-length case along with null-terminated 2015-09-13 13:12:25 -04:00
utils.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00