summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Muscariello <muscariello@ieee.org>2022-10-19 15:31:05 +0000
committerGerrit Code Review <gerrit@fd.io>2022-10-19 15:31:05 +0000
commitd00ad4c5c437fd10c850bc073f94d2b790926b1d (patch)
tree1c7c269ec9cb1425df32381508511513775cfce9
parenta5e828f61d46541e2c821673134221dadfc6695d (diff)
parenta6ed4809a456360bc37545f79fe7b48b388078c8 (diff)
Merge "fix(libhicn): Out of bound memory access"
-rw-r--r--lib/src/test/test_khash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/test/test_khash.cc b/lib/src/test/test_khash.cc
index 70b2f2258..da6b62071 100644
--- a/lib/src/test/test_khash.cc
+++ b/lib/src/test/test_khash.cc
@@ -158,11 +158,11 @@ TEST_F (KHashTest, Collisions)
Key key2 = { .x = 11 };
k = kh_put_test_map (map, &key1, &ret);
- EXPECT_EQ (ret, 1);
+ ASSERT_EQ (ret, 1);
kh_val (map, k) = 15u;
k = kh_put_test_map (map, &key2, &ret);
- EXPECT_EQ (ret, 1);
+ ASSERT_EQ (ret, 1);
kh_val (map, k) = 27u;
k = kh_get_test_map (map, &key1);