MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / check_rc

Function check_rc

tests/DCPS/MultiTopic/MultiTopicTest.cpp:309–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307const Duration_t max_wait = {10, 0};
308
309void check_rc(ReturnCode_t ret, const char* message, const char* extra_message = 0)
310{
311 if (ret != RETCODE_OK) {
312 std::string msg = std::string("Failed to ") + message;
313 if (extra_message) {
314 msg += std::string(" ") + extra_message;
315 }
316 msg += std::string(": ") + retcode_to_string(ret);
317 throw std::runtime_error(msg);
318 }
319}
320
321void waitForMatch(const DataWriter_var& dw, int count = 1)
322{

Callers 4

waitForMatchFunction · 0.70
WriterMethod · 0.70
check_bitsFunction · 0.70
run_multitopic_testFunction · 0.70

Calls 1

retcode_to_stringFunction · 0.85

Tested by

no test coverage detected