diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-06-21 00:51:57 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-06-23 00:05:18 -0400 |
commit | 6dfd21caef93b31c6a42025d7af928db37bca75c (patch) | |
tree | df7f94714e6b5923186d5d6874cd6f35bc3fcff3 /gthread | |
parent | d8d25d8c96f1f2f9c0f110812e477c1a8e2e1edf (diff) | |
download | glib-6dfd21caef93b31c6a42025d7af928db37bca75c.tar.gz |
Run some tests with errorcheck mutexes too
All in the name of better test coverage.
Diffstat (limited to 'gthread')
-rw-r--r-- | gthread/tests/642026.c | 4 | ||||
-rw-r--r-- | gthread/tests/Makefile.am | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gthread/tests/642026.c b/gthread/tests/642026.c index a056edd25..a95623d4b 100644 --- a/gthread/tests/642026.c +++ b/gthread/tests/642026.c @@ -85,7 +85,11 @@ main (int argc, g_test_init (&argc, &argv, NULL); g_test_bug_base ("https://bugzilla.gnome.org/show_bug.cgi?id="); +#ifdef G_ERRORCHECK_MUTEXES + g_test_add_func ("/glib/642026-ec", testcase); +#else g_test_add_func ("/glib/642026", testcase); +#endif return g_test_run (); } diff --git a/gthread/tests/Makefile.am b/gthread/tests/Makefile.am index 825e97e88..925dbcd84 100644 --- a/gthread/tests/Makefile.am +++ b/gthread/tests/Makefile.am @@ -15,6 +15,11 @@ TEST_PROGS += 1bit-mutex TEST_PROGS += 642026 642026_LDADD = $(progs_ldadd) +TEST_PROGS += 642026-ec +642026_ec_SOURCES = 642026.c +642026_ec_LDADD = $(progs_ldadd) +642026_ec_CFLAGS = -DG_ERRORCHECK_MUTEXES + TEST_PROGS += 1bit-emufutex 1bit_emufutex_SOURCES = 1bit-mutex.c 1bit_emufutex_CFLAGS = -DTEST_EMULATED_FUTEX |