From 3f168944d6f5a7a8b2631e8c7fe07047b1344093 Mon Sep 17 00:00:00 2001 From: jorton Date: Tue, 2 Jul 2019 14:47:44 +0000 Subject: * 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 --- test/testpools.c | 5 +++++ 1 file changed, 5 insertions(+) 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)); } -- cgit v1.2.1