summaryrefslogtreecommitdiff
path: root/test/testlock.c
diff options
context:
space:
mode:
authordreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2004-06-30 10:37:57 +0000
committerdreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2004-06-30 10:37:57 +0000
commite3087bf9a2cd6ed2576217ee6f90eeba6bb8b008 (patch)
tree7cbcb72b346b62a9d52ed5eeb5404c1a3de1d9da /test/testlock.c
parent79d976e8f919fdd2c52dd44254466b6984e7cfba (diff)
downloadlibapr-e3087bf9a2cd6ed2576217ee6f90eeba6bb8b008.tar.gz
The failure to delete the conditional lock ws causing a hang on BeOS, so
delete the lock when we're done and all is well again. As the tests don't run in isolation there may be other places we should clean up better. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65245 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testlock.c')
-rw-r--r--test/testlock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testlock.c b/test/testlock.c
index 9c8a14dfc..6fef9b713 100644
--- a/test/testlock.c
+++ b/test/testlock.c
@@ -298,6 +298,8 @@ static void test_timeoutcond(abts_case *tc, void *data)
break;
}
ABTS_ASSERT(tc, "Too many retries", i < MAX_RETRY);
+ APR_ASSERT_SUCCESS(tc, "Unable to destroy the conditional",
+ apr_thread_cond_destroy(timeout_cond));
}
#endif /* !APR_HAS_THREADS */