This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch feature/509-remove-cpputests
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/feature/509-remove-cpputests
by this push:
new 1a67dabc Replace EXPECT_EQ for pointer compare
1a67dabc is described below
commit 1a67dabc5b87f0c8250ce4351df310873be3b0b9
Author: Pepijn Noltes <[email protected]>
AuthorDate: Sun Dec 31 20:15:15 2023 +0100
Replace EXPECT_EQ for pointer compare
---
libs/utils/gtest/src/DeprecatedHashmapTestSuite.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libs/utils/gtest/src/DeprecatedHashmapTestSuite.cc
b/libs/utils/gtest/src/DeprecatedHashmapTestSuite.cc
index 46fdf549..429d43d7 100644
--- a/libs/utils/gtest/src/DeprecatedHashmapTestSuite.cc
+++ b/libs/utils/gtest/src/DeprecatedHashmapTestSuite.cc
@@ -102,10 +102,10 @@ TEST_F(DeprecatedHashmapTestSuite, create){
EXPECT_TRUE(defaultMap != nullptr);
EXPECT_EQ(0, defaultMap->size);
// This fails on windows due to dllimport providing a proxy for exported
functions.
- EXPECT_EQ(hashMap_equals, defaultMap->equalsKey);
- EXPECT_EQ(hashMap_equals, defaultMap->equalsValue);
- EXPECT_EQ(hashMap_hashCode, defaultMap->hashKey);
- EXPECT_EQ(hashMap_hashCode, defaultMap->hashValue);
+ EXPECT_TRUE(hashMap_equals == defaultMap->equalsKey);
+ EXPECT_TRUE(hashMap_equals == defaultMap->equalsValue);
+ EXPECT_TRUE(hashMap_hashCode == defaultMap->hashKey);
+ EXPECT_TRUE(hashMap_hashCode == defaultMap->hashValue);
}
TEST_F(DeprecatedHashmapTestSuite, size){