| 272 "to test if the buffer extension works as designed") == 0, |
272 "to test if the buffer extension works as designed") == 0, |
| 273 "value error for key: simple"); |
273 "value error for key: simple"); |
| 274 |
274 |
| 275 void *d; |
275 void *d; |
| 276 UcxMapIterator iter = ucx_map_iterator(map); |
276 UcxMapIterator iter = ucx_map_iterator(map); |
| 277 UCX_MAP_FOREACH(d, iter) { |
277 UCX_MAP_FOREACH(key, d, iter) { |
| 278 free(d); |
278 free(d); |
| 279 } |
279 } |
| 280 ucx_map_free(map); |
280 ucx_map_free(map); |
| 281 UCX_TEST_END |
281 UCX_TEST_END |
| 282 } |
282 } |
| 306 fclose(f); |
306 fclose(f); |
| 307 |
307 |
| 308 UCX_TEST_ASSERT(r == 0, "IO errors, test cannot be performed"); |
308 UCX_TEST_ASSERT(r == 0, "IO errors, test cannot be performed"); |
| 309 UcxMapIterator iter = ucx_map_iterator(map); |
309 UcxMapIterator iter = ucx_map_iterator(map); |
| 310 const char *value; size_t n; |
310 const char *value; size_t n; |
| 311 UCX_MAP_FOREACH(value, iter) { |
311 UCX_MAP_FOREACH(key, value, iter) { |
| 312 n = strlen(value); |
312 n = strlen(value); |
| 313 UCX_TEST_ASSERT(strncmp((const char*) pool->data[iter.index], value, n), |
313 UCX_TEST_ASSERT(strncmp((const char*) pool->data[iter.index], value, n), |
| 314 "values of map does not match pooled values"); |
314 "values of map does not match pooled values"); |
| 315 } |
315 } |
| 316 |
316 |