[glib] Run some tests with errorcheck mutexes too
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Run some tests with errorcheck mutexes too
- Date: Thu, 23 Jun 2011 04:06:08 +0000 (UTC)
commit 6dfd21caef93b31c6a42025d7af928db37bca75c
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 21 00:51:57 2011 -0400
Run some tests with errorcheck mutexes too
All in the name of better test coverage.
gthread/tests/642026.c | 4 ++++
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 a056edd..a95623d 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 825e97e..925dbcd 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]