BIND 10 trac2497, updated. ec24cb1c279c83107c9058cbdbd9115d84d3ea71 [2497] Add a direct HINFO testcase for the string parser
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Dec 3 23:15:01 UTC 2012
The branch, trac2497 has been updated
via ec24cb1c279c83107c9058cbdbd9115d84d3ea71 (commit)
from 1a2787f32f2376d76367516f5cfb3a0059b76474 (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 ec24cb1c279c83107c9058cbdbd9115d84d3ea71
Author: Mukund Sivaraman <muks at isc.org>
Date: Tue Dec 4 04:44:34 2012 +0530
[2497] Add a direct HINFO testcase for the string parser
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/tests/rdata_hinfo_unittest.cc | 2 ++
1 file changed, 2 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/tests/rdata_hinfo_unittest.cc b/src/lib/dns/tests/rdata_hinfo_unittest.cc
index 0055639..f592066 100644
--- a/src/lib/dns/tests/rdata_hinfo_unittest.cc
+++ b/src/lib/dns/tests/rdata_hinfo_unittest.cc
@@ -41,6 +41,7 @@ static uint8_t hinfo_rdata[] = {0x07,0x50,0x65,0x6e,0x74,0x69,0x75,0x6d,0x05,
static const char *hinfo_str = "\"Pentium\" \"Linux\"";
static const char *hinfo_str1 = "\"Pen\\\"tium\" \"Linux\"";
+static const char *hinfo_str_equal = "\"Pentium\"\"Linux\"";
static const char *hinfo_str_small1 = "\"Lentium\" \"Linux\"";
static const char *hinfo_str_small2 = "\"Pentium\" \"Kinux\"";
static const char *hinfo_str_large1 = "\"Qentium\" \"Linux\"";
@@ -127,6 +128,7 @@ TEST_F(Rdata_HINFO_Test, compare) {
HINFO hinfo_large2(hinfo_str_large2);
EXPECT_EQ(0, hinfo.compare(HINFO(hinfo_str)));
+ EXPECT_EQ(0, hinfo.compare(HINFO(hinfo_str_equal)));
EXPECT_EQ(1, hinfo.compare(HINFO(hinfo_str_small1)));
EXPECT_EQ(1, hinfo.compare(HINFO(hinfo_str_small2)));
EXPECT_EQ(-1, hinfo.compare(HINFO(hinfo_str_large1)));
More information about the bind10-changes
mailing list