chiark / gitweb /
hashmap: allow hashmap_move() to fail
[elogind.git] / src / test / test-hashmap-plain.c
index 8f7c039e3d514a768529d5783a2cde0ee69ab0dd..ce686b650caf7d6f7dedec3666016ddd8400ac91 100644 (file)
@@ -194,8 +194,8 @@ static void test_hashmap_move(void) {
         hashmap_put(m, "key 3", val3);
         hashmap_put(m, "key 4", val4);
 
-        hashmap_move(n, NULL);
-        hashmap_move(n, m);
+        assert(hashmap_move(n, NULL) == 0);
+        assert(hashmap_move(n, m) == 0);
 
         assert_se(hashmap_size(m) == 1);
         r = hashmap_get(m, "key 1");