Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
1eef52e7
Commit
1eef52e7
authored
Feb 11, 2013
by
Stephen Morris
Browse files
[2673] Correct use of wrong variable in unit test
parent
c274bccc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
View file @
1eef52e7
...
...
@@ -234,11 +234,13 @@ public:
/// Check that address was returned from proper range, that its lease
/// lifetime is correct, that T1 and T2 are returned properly
/// @param rsp response to be checked
/// @param subnet subnet that should be used to verify assigned address and options
/// @param subnet subnet that should be used to verify assigned address
/// and options
/// @param t1_mandatory is T1 mandatory?
/// @param t2_mandatory is T2 mandatory?
void
checkAddressParams
(
const
Pkt4Ptr
&
rsp
,
const
SubnetPtr
subnet
,
bool
t1_mandatory
=
false
,
bool
/* t2_mandatory */
=
false
)
{
bool
t1_mandatory
=
false
,
bool
t2_mandatory
=
false
)
{
// Technically inPool implies inRange, but let's be on the safe
// side and check both.
...
...
@@ -268,7 +270,7 @@ public:
if
(
opt
)
{
EXPECT_EQ
(
opt
->
getUint32
(),
subnet
->
getT2
());
}
else
{
if
(
t
1
_mandatory
)
{
if
(
t
2
_mandatory
)
{
ADD_FAILURE
()
<<
"Required T2 option missing"
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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