anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
1ff636
From 2c52141dcf9c1bc2445dde5265036abca7e5c2c7 Mon Sep 17 00:00:00 2001
1ff636
From: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
1ff636
Date: Tue, 19 May 2015 06:33:54 +0200
1ff636
Subject: [PATCH] test-hashmap: fix an assert
1ff636
1ff636
CID#1299016
1ff636
1ff636
(cherry picked from commit b669934fae49c9158c35e612e54e1765edca8584)
1ff636
1ff636
Cherry-picked from: b669934
1ff636
Resolves: #1222517
1ff636
---
1ff636
 src/test/test-hashmap-plain.c | 2 +-
1ff636
 1 file changed, 1 insertion(+), 1 deletion(-)
1ff636
1ff636
diff --git a/src/test/test-hashmap-plain.c b/src/test/test-hashmap-plain.c
181b3f
index 84b508f87..c1a5ccf1f 100644
1ff636
--- a/src/test/test-hashmap-plain.c
1ff636
+++ b/src/test/test-hashmap-plain.c
1ff636
@@ -682,7 +682,7 @@ static void test_hashmap_get2(void) {
1ff636
         r = hashmap_get2(m, key_orig, &key_copy);
1ff636
         assert_se(streq(r, val));
1ff636
         assert_se(key_orig != key_copy);
1ff636
-        assert_se(streq(key_orig, key_orig));
1ff636
+        assert_se(streq(key_orig, key_copy));
1ff636
 
1ff636
         r = hashmap_get2(m, "no such key", NULL);
1ff636
         assert_se(r == NULL);