Run some tests with errorcheck mutexes too

All in the name of better test coverage.
This commit is contained in:
Matthias Clasen 2011-06-21 00:51:57 -04:00
parent d8d25d8c96
commit 6dfd21caef
2 changed files with 9 additions and 0 deletions

View File

@ -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 ();
}

View File

@ -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