BIND 10 trac1186, updated. 06fd78fda15e2e877cf8d15c058ee6fd2015dd78 [1186] Tests are now working on OS X.

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Sep 5 18:55:52 UTC 2011


The branch, trac1186 has been updated
       via  06fd78fda15e2e877cf8d15c058ee6fd2015dd78 (commit)
      from  2befaae14e4a27fbd0f217c39692720bf0fde3c7 (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 06fd78fda15e2e877cf8d15c058ee6fd2015dd78
Author: Tomek Mrugalski <tomasz at isc.org>
Date:   Mon Sep 5 20:55:04 2011 +0200

    [1186] Tests are now working on OS X.

-----------------------------------------------------------------------

Summary of changes:
 src/bin/dhcp6/tests/iface_mgr_unittest.cc |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/dhcp6/tests/iface_mgr_unittest.cc b/src/bin/dhcp6/tests/iface_mgr_unittest.cc
index 07ce0c6..7f5e3a8 100644
--- a/src/bin/dhcp6/tests/iface_mgr_unittest.cc
+++ b/src/bin/dhcp6/tests/iface_mgr_unittest.cc
@@ -69,9 +69,11 @@ TEST_F(IfaceMgrTest, loDetect) {
 
     NakedIfaceMgr * ifacemgr = new NakedIfaceMgr();
     IOAddress loAddr("::1");
+    IOAddress mcastAddr("ff02::1:2");
 
     // bind multicast socket to port 10547
-    int socket1 = ifacemgr->openSocket("lo", loAddr, 10547);
+    int socket1 = ifacemgr->openSocket("lo", mcastAddr, 10547);
+    // this fails on BSD (there's no lo interface there)
 
     // poor man's interface dection
     // it will go away as soon as proper interface detection
@@ -80,7 +82,8 @@ TEST_F(IfaceMgrTest, loDetect) {
         cout << "This is Linux, using lo as loopback." << endl;
         close(socket1);
     } else {
-        socket1 = ifacemgr->openSocket("lo0", loAddr, 10547);
+        // this fails on Linux and succeeds on BSD
+        socket1 = ifacemgr->openSocket("lo0", mcastAddr, 10547);
         if (socket1>0) {
             sprintf(LOOPBACK, "lo0");
             cout << "This is BSD, using lo0 as loopback." << endl;




More information about the bind10-changes mailing list