Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
c936de6a
Commit
c936de6a
authored
Oct 22, 2013
by
Marcin Siodelski
Browse files
[3200] In two additional AssertionFailures, pass the message as parameter.
parent
e135eb79
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/tests/dhcp4_test_utils.cc
View file @
c936de6a
...
...
@@ -348,9 +348,9 @@ Dhcpv4SrvTest::createPacketFromBuffer(const Pkt4Ptr& src_pkt,
try
{
src_pkt
->
pack
();
}
catch
(
const
Exception
&
ex
)
{
return
(
::
testing
::
AssertionFailure
(
)
<<
"Failed to parse source packet: "
<<
ex
.
what
());
return
(
::
testing
::
AssertionFailure
(
::
testing
::
Message
()
<<
"Failed to parse source packet: "
<<
ex
.
what
())
)
;
}
// Get the output buffer from the source packet.
const
util
::
OutputBuffer
&
buf
=
src_pkt
->
getBuffer
();
...
...
@@ -360,9 +360,11 @@ Dhcpv4SrvTest::createPacketFromBuffer(const Pkt4Ptr& src_pkt,
dst_pkt
.
reset
(
new
Pkt4
(
static_cast
<
const
uint8_t
*>
(
buf
.
getData
()),
buf
.
getLength
()));
}
catch
(
const
Exception
&
ex
)
{
return
(
::
testing
::
AssertionFailure
()
<<
"Failed to create a destination packet from the buffer: "
<<
ex
.
what
());
return
(
::
testing
::
AssertionFailure
(
::
testing
::
Message
()
<<
"Failed to create a"
" destination packet from"
" the buffer: "
<<
ex
.
what
()));
}
try
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment