Author: ivan
Date: Thu Nov 5 07:00:28 2015
New Revision: 1712714
URL: http://svn.apache.org/viewvc?rev=1712714&view=rev
Log:
Fix test pool access in mock buckets tests.
* test/mock_buckets.c
(test_basic_mock_bucket): Cast tc->testBaton to test_baton_t instead of
apr_pool_t.
Modified:
serf/trunk/test/mock_buckets.c
Modified: serf/trunk/test/mock_buckets.c
URL:
http://svn.apache.org/viewvc/serf/trunk/test/mock_buckets.c?rev=1712714&r1=1712713&r2=1712714&view=diff
==============================================================================
--- serf/trunk/test/mock_buckets.c (original)
+++ serf/trunk/test/mock_buckets.c Thu Nov 5 07:00:28 2015
@@ -205,8 +205,8 @@ const serf_bucket_type_t serf_bucket_typ
static void test_basic_mock_bucket(CuTest *tc)
{
serf_bucket_t *mock_bkt;
- apr_pool_t *test_pool = tc->testBaton;
- serf_bucket_alloc_t *alloc = serf_bucket_allocator_create(test_pool, NULL,
+ test_baton_t *tb = tc->testBaton;
+ serf_bucket_alloc_t *alloc = serf_bucket_allocator_create(tb->pool, NULL,
NULL);
/* read one line */
{