BIND 10 master, updated. ea8ba75f55dceb13773d98a5836d075e231b2b6f [master] Fixed unit test build issue in user check library
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Oct 23 23:24:32 UTC 2013
The branch, master has been updated
via ea8ba75f55dceb13773d98a5836d075e231b2b6f (commit)
from 4b0a0a96a7ac23db5d1c07c3e9511574e5d49c57 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ea8ba75f55dceb13773d98a5836d075e231b2b6f
Author: Thomas Markwalder <tmark at isc.org>
Date: Wed Oct 23 19:22:19 2013 -0400
[master] Fixed unit test build issue in user check library
trac3186 added the user_chk hook library which had a couple of
uses of EXPECT_EQ on stl containers. Gtest 1.5 does not like this.
-----------------------------------------------------------------------
Summary of changes:
src/hooks/dhcp/user_chk/tests/user_unittests.cc | 2 +-
src/hooks/dhcp/user_chk/tests/userid_unittests.cc | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/hooks/dhcp/user_chk/tests/user_unittests.cc b/src/hooks/dhcp/user_chk/tests/user_unittests.cc
index 7049711..2ca156c 100644
--- a/src/hooks/dhcp/user_chk/tests/user_unittests.cc
+++ b/src/hooks/dhcp/user_chk/tests/user_unittests.cc
@@ -90,7 +90,7 @@ TEST(UserTest, properties) {
EXPECT_EQ("2.0", value);
const PropertyMap& map2 = user->getProperties();
- EXPECT_EQ(map2, map);
+ EXPECT_TRUE(map2 == map);
}
} // end of anonymous namespace
diff --git a/src/hooks/dhcp/user_chk/tests/userid_unittests.cc b/src/hooks/dhcp/user_chk/tests/userid_unittests.cc
index 817e011..c31c4ae 100644
--- a/src/hooks/dhcp/user_chk/tests/userid_unittests.cc
+++ b/src/hooks/dhcp/user_chk/tests/userid_unittests.cc
@@ -55,7 +55,7 @@ TEST(UserIdTest, hwAddress_type) {
ASSERT_NO_THROW(id.reset(new UserId(UserId::HW_ADDRESS, bytes)));
// Verify that the id can be fetched.
EXPECT_EQ(id->getType(), UserId::HW_ADDRESS);
- EXPECT_EQ(bytes, id->getId());
+ EXPECT_TRUE(bytes == id->getId());
// Check relational oeprators when a == b.
UserIdPtr id2;
@@ -98,7 +98,7 @@ TEST(UserIdTest, duid_type) {
ASSERT_NO_THROW(id.reset(new UserId(UserId::DUID, bytes)));
// Verify that the id can be fetched.
EXPECT_EQ(id->getType(), UserId::DUID);
- EXPECT_EQ(bytes, id->getId());
+ EXPECT_TRUE(bytes == id->getId());
// Check relational oeprators when a == b.
UserIdPtr id2;
More information about the bind10-changes
mailing list