BIND 10 trac3200, updated. 45eb1980e4238717e3aee354587eb857759d74e8 [3200] In one more AssertionFailure pass the error message as parameter.

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Oct 22 16:25:05 UTC 2013


The branch, trac3200 has been updated
       via  45eb1980e4238717e3aee354587eb857759d74e8 (commit)
      from  c936de6a262f1509d14c3ce457c5c0b27e86a4e2 (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 45eb1980e4238717e3aee354587eb857759d74e8
Author: Marcin Siodelski <marcin at isc.org>
Date:   Tue Oct 22 18:24:34 2013 +0200

    [3200] In one more AssertionFailure pass the error message as parameter.

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

Summary of changes:
 src/bin/dhcp4/tests/dhcp4_test_utils.cc |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/dhcp4/tests/dhcp4_test_utils.cc b/src/bin/dhcp4/tests/dhcp4_test_utils.cc
index 5bcf63a..56e96f1 100644
--- a/src/bin/dhcp4/tests/dhcp4_test_utils.cc
+++ b/src/bin/dhcp4/tests/dhcp4_test_utils.cc
@@ -371,9 +371,10 @@ Dhcpv4SrvTest::createPacketFromBuffer(const Pkt4Ptr& src_pkt,
         // Parse the new packet and return to the caller.
         dst_pkt->unpack();
     } catch (const Exception& ex) {
-        return (::testing::AssertionFailure()
-                << "Failed to parse a destination packet: "
-                << ex.what());
+        return (::testing::AssertionFailure(::testing::Message()
+                                            << "Failed to parse a"
+                                            << " destination packet: "
+                                            << ex.what()));
     }
 
     return (::testing::AssertionSuccess());



More information about the bind10-changes mailing list