summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/testpools.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/testpools.c b/test/testpools.c
index bce7ddf2c..c92a3f95a 100644
--- a/test/testpools.c
+++ b/test/testpools.c
@@ -166,7 +166,12 @@ static void test_cleanups(abts_case *tc, void *data)
static void test_tags(abts_case *tc, void *data)
{
+ /* if APR_POOL_DEBUG is set, all pools are tagged by default */
+#if APR_POOL_DEBUG
+ ABTS_PTR_NOTNULL(tc, apr_pool_get_tag(pmain));
+#else
ABTS_PTR_EQUAL(tc, NULL, apr_pool_get_tag(pmain));
+#endif
apr_pool_tag(pmain, "main pool");
ABTS_STR_EQUAL(tc, "main pool", apr_pool_get_tag(pmain));
}