* test/testpools.c (test_tags): Fix spurious failure with APR_POOL_DEBUG.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1862434 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/testpools.c b/test/testpools.c
index bce7ddf..c92a3f9 100644
--- a/test/testpools.c
+++ b/test/testpools.c
@@ -166,7 +166,12 @@
 
 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));
 }