[systemd-commits] src/test
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Mon May 18 21:35:48 PDT 2015
src/test/test-hashmap-plain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b669934fae49c9158c35e612e54e1765edca8584
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue May 19 06:33:54 2015 +0200
test-hashmap: fix an assert
CID#1299016
diff --git a/src/test/test-hashmap-plain.c b/src/test/test-hashmap-plain.c
index 84b508f..c1a5ccf 100644
--- a/src/test/test-hashmap-plain.c
+++ b/src/test/test-hashmap-plain.c
@@ -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);
More information about the systemd-commits
mailing list