chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libudev: set errno properly in all error conditions of udev_device_new_from_syspath()
[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..6f0910aae7bee01f4cdd0fa647929940937c3398 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");
@@
-246,7
+246,7
@@
static void test_hashmap_put(void) {
int valid_hashmap_put;
void *val1 = (void*) "val 1";
int valid_hashmap_put;
void *val1 = (void*) "val 1";
-
hashmap_ensure_allocated(&m, &string_hash_ops
);
+
assert_se(hashmap_ensure_allocated(&m, &string_hash_ops) >= 0
);
assert_se(m);
valid_hashmap_put = hashmap_put(m, "key 1", val1);
assert_se(m);
valid_hashmap_put = hashmap_put(m, "key 1", val1);