mirror of
https://github.com/systemd/systemd.git
synced 2025-03-08 08:58:27 +03:00
test: use assert_se in test_hashmap_move
This commit is contained in:
parent
455971c149
commit
e80afdb3e4
@ -194,8 +194,8 @@ static void test_hashmap_move(void) {
|
||||
hashmap_put(m, "key 3", val3);
|
||||
hashmap_put(m, "key 4", val4);
|
||||
|
||||
assert(hashmap_move(n, NULL) == 0);
|
||||
assert(hashmap_move(n, m) == 0);
|
||||
assert_se(hashmap_move(n, NULL) == 0);
|
||||
assert_se(hashmap_move(n, m) == 0);
|
||||
|
||||
assert_se(hashmap_size(m) == 1);
|
||||
r = hashmap_get(m, "key 1");
|
||||
|
Loading…
x
Reference in New Issue
Block a user