summaryrefslogtreecommitdiff
path: root/src/test/test-hashmap-plain.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-11-04 16:20:22 +0100
committerTom Gundersen <teg@jklm.no>2014-11-05 16:54:22 +0100
commit61c81750217af7492be86adde81b28e310cd5e82 (patch)
tree8398c46bbc830cabc77476b77637df0cc377b520 /src/test/test-hashmap-plain.c
parent696c24fced77b152dda45f0bdbcf6411849bd8ab (diff)
test: hashmap-plain - make coverity happy
Check return value of hashmap_ensure_allocated(). CID#1250807.
Diffstat (limited to 'src/test/test-hashmap-plain.c')
-rw-r--r--src/test/test-hashmap-plain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-hashmap-plain.c b/src/test/test-hashmap-plain.c
index 63f2f3e8ff..6f0910aae7 100644
--- a/src/test/test-hashmap-plain.c
+++ b/src/test/test-hashmap-plain.c
@@ -246,7 +246,7 @@ static void test_hashmap_put(void) {
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);