summaryrefslogtreecommitdiff
path: root/tests/internal-debug.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-07-07 17:45:31 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-07-07 17:45:31 +0100
commit3e2df72ead78c9f96beb0cefb77e766733a390f1 (patch)
treea0cd153c9ba2481ecce76b4a2fe3fb2de46ae761 /tests/internal-debug.c
parent22db42544e3390e3685956c07d5c1ed15309141d (diff)
downloadtelepathy-glib-3e2df72ead78c9f96beb0cefb77e766733a390f1.tar.gz
Make DEBUG a no-op static inline with --disable-debug.
Diffstat (limited to 'tests/internal-debug.c')
-rw-r--r--tests/internal-debug.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/internal-debug.c b/tests/internal-debug.c
index b852da78d..1c1073382 100644
--- a/tests/internal-debug.c
+++ b/tests/internal-debug.c
@@ -12,9 +12,8 @@
static void
test_debugging (void)
{
-#ifndef DEBUG
-#error internal-debug.h should always define DEBUG
-#endif
+ DEBUG ("internal-debug.h should always define DEBUG %s",
+ "(either as a macro or as a no-op static inline function");
#ifndef DEBUGGING
#error internal-debug.h should always define DEBUGGING
@@ -34,9 +33,8 @@ test_debugging (void)
static void
test_not_debugging (void)
{
-#ifndef DEBUG
-#error internal-debug.h should always define DEBUG
-#endif
+ DEBUG ("internal-debug.h should always define DEBUG %s",
+ "(either as a macro or as a no-op static inline function");
#ifndef DEBUGGING
#error internal-debug.h should always define DEBUGGING
@@ -52,9 +50,8 @@ test_not_debugging (void)
static void
test_debugging_again (void)
{
-#ifndef DEBUG
-#error internal-debug.h should always define DEBUG
-#endif
+ DEBUG ("internal-debug.h should always define DEBUG %s",
+ "(either as a macro or as a no-op static inline function");
#ifndef DEBUGGING
#error internal-debug.h should always define DEBUGGING