| 333 | } |
| 334 | |
| 335 | bool complex_test_cleanup(const Publisher_var& pub, const Subscriber_var& sub, |
| 336 | DataWriter_var& dw, DataReader_var& dr1, DataReader_var& dr2) |
| 337 | { |
| 338 | ReturnCode_t rc = sub->delete_datareader(dr2); |
| 339 | if (rc != DDS::RETCODE_OK) { |
| 340 | cerr << "ERROR: complex_test_cleanup: delete 2nd datareader failed: " |
| 341 | << retcode_to_string(rc) << endl; |
| 342 | return false; |
| 343 | } |
| 344 | return test_cleanup(pub, sub, dw, dr1, true); |
| 345 | } |
| 346 | |
| 347 | bool waitForSample(const DataReader_var& dr) |
| 348 | { |
no test coverage detected