Lines Matching refs:oldk
56 long oldk, k = i; in test_hashmap_generic() local
59 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
67 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
68 if (CHECK(oldk != 0 || oldv != 0, "check_kv", in test_hashmap_generic()
69 "unexpected k/v: %ld=%ld\n", oldk, oldv)) in test_hashmap_generic()
106 long oldk, k = i; in test_hashmap_generic() local
115 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
117 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
164 long oldk, k; in test_hashmap_generic() local
173 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
176 if (CHECK(oldk != k || oldv != v, "check_old", in test_hashmap_generic()
178 k, v, oldk, oldv)) in test_hashmap_generic()
180 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
181 "unexpectedly deleted k/v %ld = %ld\n", oldk, oldv)) in test_hashmap_generic()
198 long oldk, k; in test_hashmap_generic() local
207 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
210 if (CHECK(oldk != k || oldv != v, "elem_check", in test_hashmap_generic()
212 k, v, oldk, oldv)) in test_hashmap_generic()
214 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()