test/map_tests.c

changeset 76
655020a30e77
parent 71
303dabadff1c
child 80
0125e4089f88
equal deleted inserted replaced
75:990734f548ef 76:655020a30e77
264 ucx_map_cstr_put(map, "testkey", (void*)"testvalue"); 264 ucx_map_cstr_put(map, "testkey", (void*)"testvalue");
265 ucx_map_cstr_put(map, "simple", (void*)"a simple value"); 265 ucx_map_cstr_put(map, "simple", (void*)"a simple value");
266 266
267 UCX_TEST_BEGIN 267 UCX_TEST_BEGIN
268 FILE *f = tmpfile(); 268 FILE *f = tmpfile();
269 UCX_TEST_ASSERT(f, "test file cannot be opened, test aborted") 269 UCX_TEST_ASSERT(f, "test file cannot be opened, test aborted");
270 int r; 270 int r;
271 r = ucx_map_store_enc(map, f, NULL, NULL); 271 r = ucx_map_store_enc(map, f, NULL, NULL);
272 ucx_map_free(map); 272 ucx_map_free(map);
273 fflush(f); 273 fflush(f);
274 274

mercurial