mirror of
https://github.com/systemd/systemd
synced 2024-09-06 08:46:19 +00:00
test-hashmap: fix an assert
CID#1299016
This commit is contained in:
parent
e88d8021ba
commit
b669934fae
|
@ -682,7 +682,7 @@ static void test_hashmap_get2(void) {
|
|||
r = hashmap_get2(m, key_orig, &key_copy);
|
||||
assert_se(streq(r, val));
|
||||
assert_se(key_orig != key_copy);
|
||||
assert_se(streq(key_orig, key_orig));
|
||||
assert_se(streq(key_orig, key_copy));
|
||||
|
||||
r = hashmap_get2(m, "no such key", NULL);
|
||||
assert_se(r == NULL);
|
||||
|
|
Loading…
Reference in a new issue