Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
f2c0ce1a
Commit
f2c0ce1a
authored
Jan 18, 2013
by
Tomek Mrugalski
🛰
Browse files
[2596] Error message in unlikely case that the system has nonexistent0 interface.
parent
f3709cc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/tests/config_parser_unittest.cc
View file @
f2c0ce1a
...
...
@@ -52,11 +52,18 @@ public:
// There must be some interface detected
if
(
ifaces
.
empty
())
{
// We can't use ASSERT in constructor
ADD_FAILURE
()
<<
"No interfaces detected."
;
}
valid_iface_
=
ifaces
.
begin
()
->
getName
();
bogus_iface_
=
"nonexisting0"
;
if
(
IfaceMgr
::
instance
().
getIface
(
bogus_iface_
))
{
ADD_FAILURE
()
<<
"The '"
<<
bogus_iface_
<<
"' exists on this system"
<<
" while the test assumes that it doesn't to execute"
<<
" some negative scenarios. Can't continue this test"
;
}
}
~
Dhcp6ParserTest
()
{
...
...
Write
Preview
Markdown
is supported
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