From: Marcin Siodelski Date: Tue, 22 Oct 2013 16:24:34 +0000 (+0200) Subject: [3200] In one more AssertionFailure pass the error message as parameter. X-Git-Tag: bind10-1.2.0beta1-release~102^2~62^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45eb1980e4238717e3aee354587eb857759d74e8;p=thirdparty%2Fkea.git [3200] In one more AssertionFailure pass the error message as parameter. --- diff --git a/src/bin/dhcp4/tests/dhcp4_test_utils.cc b/src/bin/dhcp4/tests/dhcp4_test_utils.cc index 5bcf63add7..56e96f18f7 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());