22
22
#include < log/logger_support.h>
23
23
#include < stats/stats_mgr.h>
24
24
#include < util/multi_threading_mgr.h>
25
+ #include < util/chrono_time_utils.h>
25
26
#include < testutils/io_utils.h>
26
27
#include < testutils/unix_control_client.h>
27
28
#include < testutils/sandbox.h>
28
- #include < util/chrono_time_utils.h>
29
29
30
30
#include " marker_file.h"
31
31
#include " test_libraries.h"
@@ -460,6 +460,8 @@ TEST_F(CtrlDhcpv6SrvTest, commands) {
460
460
result = CommandMgr::instance ().processCommand (createCommand (" shutdown" , params));
461
461
comment = parseAnswer (rcode, result);
462
462
EXPECT_EQ (0 , rcode); // expect success
463
+ // Exit value should default to 0.
464
+ EXPECT_EQ (0 , server_->getExitValue ());
463
465
464
466
// Case 3: send shutdown command with exit-value parameter.
465
467
ConstElementPtr x (new isc::data::IntElement (77 ));
@@ -473,8 +475,6 @@ TEST_F(CtrlDhcpv6SrvTest, commands) {
473
475
EXPECT_EQ (77 , srv->getExitValue ());
474
476
}
475
477
476
- typedef std::map<std::string, isc::data::ConstElementPtr> ElementMap;
477
-
478
478
// This test checks which commands are registered by the DHCPv6 server.
479
479
TEST_F (CtrlDhcpv6SrvTest, commandsRegistration) {
480
480
@@ -607,8 +607,8 @@ TEST_F(CtrlChannelDhcpv6SrvTest, controlChannelStats) {
607
607
};
608
608
609
609
std::ostringstream s;
610
- bool first = true ;
611
610
s << " { \" arguments\" : { " ;
611
+ bool first = true ;
612
612
for (auto const & st : initial_stats) {
613
613
if (!first) {
614
614
s << " , " ;
0 commit comments