| 307 | const Duration_t max_wait = {10, 0}; |
| 308 | |
| 309 | void 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 | |
| 321 | void waitForMatch(const DataWriter_var& dw, int count = 1) |
| 322 | { |
no test coverage detected