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