test/prop_tests.c

changeset 158
81d580042da1
parent 147
1aa598f36872
child 177
11ad03783baf
     1.1 --- a/test/prop_tests.c	Mon Sep 09 14:26:12 2013 +0200
     1.2 +++ b/test/prop_tests.c	Sat Dec 21 12:31:31 2013 +0100
     1.3 @@ -365,8 +365,7 @@
     1.4  
     1.5  UCX_TEST(test_ucx_properties2map) {
     1.6      UcxMempool *mp = ucx_mempool_new(64);
     1.7 -    UcxAllocator *a = ucx_mempool_allocator(mp);
     1.8 -    UcxMap *map = ucx_map_new_a(a, 16);
     1.9 +    UcxMap *map = ucx_map_new_a(mp->allocator, 16);
    1.10      UcxProperties *parser = ucx_properties_new();
    1.11      
    1.12      UCX_TEST_BEGIN
    1.13 @@ -393,7 +392,7 @@
    1.14      
    1.15      // second test
    1.16      ucx_map_free(map);
    1.17 -    map = ucx_map_new_a(a, 16);
    1.18 +    map = ucx_map_new_a(mp->allocator, 16);
    1.19      
    1.20      str = "\n#comment\n";
    1.21      ucx_properties_fill(parser, (char*)str, strlen(str));

mercurial