[glib] glib/tests: Fix non-debug build of slice test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib/tests: Fix non-debug build of slice test
- Date: Sat, 4 Jan 2014 23:47:00 +0000 (UTC)
commit b3253fe02521969d4f4299136ae34a7e147adc2a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Jan 4 22:04:20 2014 +0100
glib/tests: Fix non-debug build of slice test
In addition to e013cf9cad56e919af2f057eb52d58371483a6f8
glib/tests/slice.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/slice.c b/glib/tests/slice.c
index 764e27f..b24c5e3 100644
--- a/glib/tests/slice.c
+++ b/glib/tests/slice.c
@@ -16,6 +16,7 @@ test_slice_config (void)
g_test_trap_assert_failed ();
}
+#ifdef G_ENABLE_DEBUG
static void
test_slice_nodebug (void)
{
@@ -73,6 +74,7 @@ test_slice_debug (void)
else
g_unsetenv ("G_SLICE");
}
+#endif
static void
test_slice_copy (void)
@@ -174,8 +176,10 @@ main (int argc, char **argv)
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/slice/config", test_slice_config);
+#ifdef G_ENABLE_DEBUG
g_test_add_func ("/slice/nodebug", test_slice_nodebug);
g_test_add_func ("/slice/debug", test_slice_debug);
+#endif
g_test_add_func ("/slice/copy", test_slice_copy);
g_test_add_func ("/slice/chain", test_chain);
g_test_add_func ("/slice/allocate", test_allocate);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]