anitazha / rpms / systemd

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