BIND 10 trac3145, updated. 3a844e85ecc3067ccd1c01841f4a61366cb278f4 [3145] ASSERT_NO_THROW added in couple IA_{NA, PD} tests.
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Sep 10 10:11:01 UTC 2013
The branch, trac3145 has been updated
via 3a844e85ecc3067ccd1c01841f4a61366cb278f4 (commit)
from 9d3952fc9739348ccc34694c36036d7d46a5e273 (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 3a844e85ecc3067ccd1c01841f4a61366cb278f4
Author: Tomek Mrugalski <tomasz at isc.org>
Date: Tue Sep 10 12:10:50 2013 +0200
[3145] ASSERT_NO_THROW added in couple IA_{NA,PD} tests.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/tests/option6_ia_unittest.cc | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/tests/option6_ia_unittest.cc b/src/lib/dhcp/tests/option6_ia_unittest.cc
index 68268a8..2a91505 100644
--- a/src/lib/dhcp/tests/option6_ia_unittest.cc
+++ b/src/lib/dhcp/tests/option6_ia_unittest.cc
@@ -68,9 +68,9 @@ public:
// Create an option
// unpack() is called from constructor
- scoped_ptr<Option6IA> opt(new Option6IA(type,
- buf_.begin(),
- buf_.begin() + 12));
+ scoped_ptr<Option6IA> opt;
+ ASSERT_NO_THROW(opt.reset(new Option6IA(type, buf_.begin(),
+ buf_.begin() + 12)));
EXPECT_EQ(Option::V6, opt->getUniverse());
EXPECT_EQ(type, opt->getType());
@@ -82,7 +82,7 @@ public:
// different place
// Test for pack()
- opt->pack(outBuf_);
+ ASSERT_NO_THROW(opt->pack(outBuf_));
// 12 bytes header + 4 bytes content
EXPECT_EQ(12, opt->len() - opt->getHeaderLen());
@@ -208,7 +208,8 @@ TEST_F(Option6IATest, suboptionsPack) {
TEST_F(Option6IATest, pdSuboptionsPack) {
// Let's build IA_PD
- scoped_ptr<Option6IA> ia(new Option6IA(D6O_IA_PD, 0x13579ace));
+ scoped_ptr<Option6IA> ia;
+ ASSERT_NO_THROW(ia.reset(new Option6IA(D6O_IA_PD, 0x13579ace)));
ia->setT1(0x2345);
ia->setT2(0x3456);
More information about the bind10-changes
mailing list