| 323 | } |
| 324 | |
| 325 | void 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()); \ |