summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2019-07-02 14:47:44 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2019-07-02 14:47:44 +0000
commit3f168944d6f5a7a8b2631e8c7fe07047b1344093 (patch)
treeb1b56c15d0aa4d164724a8bdba5045539de8141b
parent72d4ed5f6479c58e3b4ea6bb408600402569eab5 (diff)
downloadlibapr-3f168944d6f5a7a8b2631e8c7fe07047b1344093.tar.gz
* test/testpools.c (test_tags): Fix spurious failure with APR_POOL_DEBUG.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1862434 13f79535-47bb-0310-9956-ffa450edef68
-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));
}