MCPcopy Create free account
hub / github.com/apache/qpid-proton / test_spin_interrupt

Function test_spin_interrupt

cpp/src/connection_driver_test.cpp:325–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void test_spin_interrupt() {
326 // Check the test framework interrupts a spinning driver pair with nothing to do.
327 record_handler ha, hb;
328 driver_pair d(ha, hb);
329 try {
330 while (true)
331 d.process();
332 FAIL("expected exception");
333 } catch (const test::error&) {}
334}
335
336#define ASSERT_ADDR(ADDR, TERMINUS) do { \
337 ASSERT_EQUAL((ADDR), (TERMINUS).address()); \

Callers 1

mainFunction · 0.85

Calls 1

processMethod · 0.45

Tested by

no test coverage detected