chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: use assert_se in test_hashmap_move
[elogind.git]
/
src
/
test
/
test-hashmap-plain.c
diff --git
a/src/test/test-hashmap-plain.c
b/src/test/test-hashmap-plain.c
index d27d5ec81912e9a2cf36443d14626fcdfc49914b..63f2f3e8ff0671b6b047fa60c5386225df79d5a6 100644
(file)
--- a/
src/test/test-hashmap-plain.c
+++ b/
src/test/test-hashmap-plain.c
@@
-194,8
+194,8
@@
static void test_hashmap_move(void) {
hashmap_put(m, "key 3", val3);
hashmap_put(m, "key 4", val4);
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");
assert_se(hashmap_size(m) == 1);
r = hashmap_get(m, "key 1");