- Replace TestExceptions, TestErrorState, TestSignals and TestWaitFor
with one StateAction device; the id selects the action and the state
- Run the device tests through test::RunDevices() instead of
EXPECT_EXIT() and check the exit code and the expected log line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add test::RunDevices(): starts the devices with the same session,
transport, shm options and channel config, with a deadline per run
- Add the TestDevice base: Check() fails the device, Succeed() prints
a marker with the transport name that the harness verifies
- Make the protocol, poller and transfer-timeout devices check their
own results and drop the InitTask() sleeps
- Replace EXPECT_EXIT() and the copied launch code in the protocol,
poller and transfer-timeout tests
- A device that uses the wrong transport now fails the test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A transer is attempted even if the transport has been interrupted
(with a timeout). When the timeout is reached, transfer methods will
return TransferResult::interrupted (-3).
- Split INITIALIZING state into Init+Bind+Connect
- Remove PAUSE state
- Convert state/transitions to enum classes (CamelCase)
- Transition to a state only once previous handler is complete
- Add CompleteInit transition to notify Initializing state
that config updates are complete
- Deprecate WaitForEndOfState(transition) in favor of
WaitForState(state)/WaitForNextState()
- Update tests/plugins to new APIs
- Deprecate CheckCurrentState() in favor of NewStatePending()
the patch seems big but most of it is just propagating the new notion of
constness of the factory - since it keeps track of created messages with
the internal allocator it no longer is const