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

Function complex_test_cleanup

tests/DCPS/QueryCondition/QueryConditionTest.cpp:335–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335bool 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
347bool waitForSample(const DataReader_var& dr)
348{

Callers 1

Calls 3

retcode_to_stringFunction · 0.85
test_cleanupFunction · 0.85
delete_datareaderMethod · 0.45

Tested by

no test coverage detected