File tree Expand file tree Collapse file tree
control_client/src/details
daemon/src/alive_monitor/details/ifappl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 ********************************************************************************/
1313
1414#include < cstdint>
15+ #include < cassert>
1516#include < map>
1617#include < sys/stat.h>
1718#include < thread>
@@ -94,7 +95,9 @@ ControlClientImpl::ControlClientImpl(std::function<void(const score::lcm::Execut
9495
9596 ipc_channel_ = score::lcm::internal::ControlClientChannel::initializeControlClientChannel ();
9697
97- static_cast <void >(ipc_request_semaphore_.init (1U , false ));
98+ const auto init_result = ipc_request_semaphore_.init (1U , false );
99+ assert ((score::lcm::internal::osal::OsalReturnType::kSuccess == init_result) &&
100+ " ControlClient semaphore initialization failed" );
98101 ipc_response_thread_ = std::make_unique<std::thread>(&ControlClientImpl::run, this );
99102}
100103
Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ struct MonitorIfDaemonFixture
7474 // / Initialize the IPC server so that peek/pop/hasOverflow use real shared memory.
7575 void initIpc ()
7676 {
77- static_cast <void >(ipcServer.init (makeUniqueIpcName ()));
77+ ASSERT_TRUE (ipcServer.init (makeUniqueIpcName ()) == ifappl::CheckpointIpcServer::EIpcInitResult::kOk )
78+ << " CheckpointIpcServer init failed" ;
7879 }
7980
8081 // / Drive the process to the 'running' state and notify observers.
You can’t perform that action at this time.
0 commit comments