[bind10-dev] 'make check' failing 5 tests on FreeBSD 8.3 (slave build under Jenkins)

JINMEI Tatuya / 神明達哉 jinmei at isc.org
Thu Mar 14 02:40:40 UTC 2013


At Wed, 13 Mar 2013 22:18:09 -0400,
Jeff Wright <jwright at isc.org> wrote:

> I have a Jenkins instance that spins off a build of bind10 (anonymous
> git from git://git.bind10.isc.org/bind10) to a remote ("slave") agent
> running FreeBSD 8.3. "make check" is failing as follows on the slave
> agent. (I believe this is the right forum to report these types of
> failures, is it not?).

What if, for example, you apply the patch pasted below, recompile it
and rerun the test?  (It will still fail but will show what exactly
happens, not just saying "a different type.")

Also, how did you install googletest?  From ports?  If so, it might
change if you simply extract a tar ball of googletest somewhere and
build it with BIND 10 using --with-gtest-source instead of
--with-gtest.

---
JINMEI, Tatuya

diff --git a/src/lib/dns/tests/rdata_opt_unittest.cc b/src/lib/dns/tests/rdata_opt_unittest.cc
index 5699259..74fc13d 100644
--- a/src/lib/dns/tests/rdata_opt_unittest.cc
+++ b/src/lib/dns/tests/rdata_opt_unittest.cc
@@ -84,6 +84,7 @@ TEST_F(Rdata_OPT_Test, compare) {
                                         "rdata_opt_fromWire", 2)));
 
     // comparison attempt between incompatible RR types should be rejected
-    EXPECT_THROW(rdata_opt.compare(*RdataTest::rdata_nomatch), bad_cast); 
+    (void)rdata_opt.compare(*RdataTest::rdata_nomatch);
+    //EXPECT_THROW(rdata_opt.compare(*RdataTest::rdata_nomatch), bad_cast); 
 }
 }


More information about the bind10-dev mailing list