BIND 10 trac2522, updated. 0b2800af6eedeba3b71108765fd4e04195c0a4ad [2522] updated 'missing origin' tests so we test all names
BIND 10 source code commits
bind10-changes at lists.isc.org
Sat May 18 00:49:53 UTC 2013
The branch, trac2522 has been updated
via 0b2800af6eedeba3b71108765fd4e04195c0a4ad (commit)
from ea07789d058ca92c5617c2aca304fb8ad8c69c18 (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 0b2800af6eedeba3b71108765fd4e04195c0a4ad
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Fri May 17 17:49:29 2013 -0700
[2522] updated 'missing origin' tests so we test all names
also constify one variable.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/tests/rdata_minfo_unittest.cc | 3 ++-
src/lib/dns/tests/rdata_rp_unittest.cc | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/tests/rdata_minfo_unittest.cc b/src/lib/dns/tests/rdata_minfo_unittest.cc
index 828770c..3ce6a6c 100644
--- a/src/lib/dns/tests/rdata_minfo_unittest.cc
+++ b/src/lib/dns/tests/rdata_minfo_unittest.cc
@@ -123,7 +123,8 @@ TEST_F(Rdata_MINFO_Test, badText) {
checkFromText_LexerError("root.example.com.");
// missing origin
- checkFromText_MissingOrigin("root.example.com emailbox.example.com");
+ checkFromText_MissingOrigin("root.example.com emailbox.example.com.");
+ checkFromText_MissingOrigin("root.example.com. emailbox.example.com");
}
TEST_F(Rdata_MINFO_Test, createFromWire) {
diff --git a/src/lib/dns/tests/rdata_rp_unittest.cc b/src/lib/dns/tests/rdata_rp_unittest.cc
index e93fca1..38bec04 100644
--- a/src/lib/dns/tests/rdata_rp_unittest.cc
+++ b/src/lib/dns/tests/rdata_rp_unittest.cc
@@ -87,7 +87,7 @@ TEST_F(Rdata_RP_Test, createFromText) {
checkFromText_None("root.example.com. rp-text.example.com.");
// origin defined for lexer constructor, but not string constructor
- Name origin("example.com");
+ const Name origin("example.com");
checkFromText_Origin("root rp-text", &origin);
// lexer constructor accepts extra text, but string constructor doesn't
@@ -104,7 +104,8 @@ TEST_F(Rdata_RP_Test, badText) {
checkFromText_LexerError("root.example.com.");
// missing origin
- checkFromText_MissingOrigin("root.example.com rp-text.example.com");
+ checkFromText_MissingOrigin("root.example.com rp-text.example.com.");
+ checkFromText_MissingOrigin("root.example.com. rp-text.example.com");
}
TEST_F(Rdata_RP_Test, createFromWire) {
More information about the bind10-changes
mailing list