X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftest%2Ftest-hashmap-plain.c;h=6f0910aae7bee01f4cdd0fa647929940937c3398;hb=d5ce1cfce46b9cf4e990acdcbae367785a56ed5e;hp=63f2f3e8ff0671b6b047fa60c5386225df79d5a6;hpb=e80afdb3e4a1239ce0bffa4215d6a227caf3d833;p=elogind.git diff --git a/src/test/test-hashmap-plain.c b/src/test/test-hashmap-plain.c index 63f2f3e8f..6f0910aae 100644 --- a/src/test/test-hashmap-plain.c +++ b/src/test/test-hashmap-plain.c @@ -246,7 +246,7 @@ static void test_hashmap_put(void) { int valid_hashmap_put; void *val1 = (void*) "val 1"; - hashmap_ensure_allocated(&m, &string_hash_ops); + assert_se(hashmap_ensure_allocated(&m, &string_hash_ops) >= 0); assert_se(m); valid_hashmap_put = hashmap_put(m, "key 1", val1);