test-hashmap: fix an assert
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 19 May 2015 04:33:54 +0000 (06:33 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 19 May 2015 04:35:44 +0000 (06:35 +0200)
CID#1299016

src/test/test-hashmap-plain.c

index 84b508f..c1a5ccf 100644 (file)
@@ -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);