]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3200] In one more AssertionFailure pass the error message as parameter.
authorMarcin Siodelski <marcin@isc.org>
Tue, 22 Oct 2013 16:24:34 +0000 (18:24 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 22 Oct 2013 16:24:34 +0000 (18:24 +0200)
src/bin/dhcp4/tests/dhcp4_test_utils.cc

index 5bcf63add7f6bf3da97c5d96b23a694f624f97cb..56e96f18f74c8d4ceee4cbb3e1cb984fbd44f966 100644 (file)
@@ -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());