BIND 10 trac2596, updated. f2c0ce1adf8090ecb9ed76e6f3f201d0b044e060 [2596] Error message in unlikely case that the system has nonexistent0 interface.
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Jan 18 13:04:35 UTC 2013
The branch, trac2596 has been updated
via f2c0ce1adf8090ecb9ed76e6f3f201d0b044e060 (commit)
from f3709cc11e26e2bb2a0cfa4f447efce885160276 (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 f2c0ce1adf8090ecb9ed76e6f3f201d0b044e060
Author: Tomek Mrugalski <tomasz at isc.org>
Date: Fri Jan 18 14:04:22 2013 +0100
[2596] Error message in unlikely case that the system has nonexistent0 interface.
-----------------------------------------------------------------------
Summary of changes:
src/bin/dhcp6/tests/config_parser_unittest.cc | 7 +++++++
1 file changed, 7 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/dhcp6/tests/config_parser_unittest.cc b/src/bin/dhcp6/tests/config_parser_unittest.cc
index caca8eb..ea84a1c 100644
--- a/src/bin/dhcp6/tests/config_parser_unittest.cc
+++ b/src/bin/dhcp6/tests/config_parser_unittest.cc
@@ -52,11 +52,18 @@ public:
// There must be some interface detected
if (ifaces.empty()) {
+ // We can't use ASSERT in constructor
ADD_FAILURE() << "No interfaces detected.";
}
valid_iface_ = ifaces.begin()->getName();
bogus_iface_ = "nonexisting0";
+
+ if (IfaceMgr::instance().getIface(bogus_iface_)) {
+ ADD_FAILURE() << "The '" << bogus_iface_ << "' exists on this system"
+ << " while the test assumes that it doesn't to execute"
+ << " some negative scenarios. Can't continue this test";
+ }
}
~Dhcp6ParserTest() {
More information about the bind10-changes
mailing list