test/prop_tests.c

changeset 158
81d580042da1
parent 147
1aa598f36872
child 177
11ad03783baf
--- a/test/prop_tests.c	Mon Sep 09 14:26:12 2013 +0200
+++ b/test/prop_tests.c	Sat Dec 21 12:31:31 2013 +0100
@@ -365,8 +365,7 @@
 
 UCX_TEST(test_ucx_properties2map) {
     UcxMempool *mp = ucx_mempool_new(64);
-    UcxAllocator *a = ucx_mempool_allocator(mp);
-    UcxMap *map = ucx_map_new_a(a, 16);
+    UcxMap *map = ucx_map_new_a(mp->allocator, 16);
     UcxProperties *parser = ucx_properties_new();
     
     UCX_TEST_BEGIN
@@ -393,7 +392,7 @@
     
     // second test
     ucx_map_free(map);
-    map = ucx_map_new_a(a, 16);
+    map = ucx_map_new_a(mp->allocator, 16);
     
     str = "\n#comment\n";
     ucx_properties_fill(parser, (char*)str, strlen(str));

mercurial