- --print-options prints the computed options and does not start the
device
- --print-channels and --version do not start the device
- Interactive control: h, c, p, k and an invalid key print their action
- Register two channel endpoints in the StateAction device
- Add disabled tests for known defects: --print-channels and --version
print nothing (console severity "nolog"); keys that arrive in one read
stay in the std::cin buffer and are never handled
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add test::StateParam (state, control mode, stdin input) and
WithControls() for INSTANTIATE_TEST_SUITE_P()
- Turn the 60 TEST() copies in the Exceptions, ErrorState, Signals and
WaitFor files into one TEST_P() each
- The test names change, e.g. Exceptions.interactive_InRun is now
Exceptions.Throw/interactive_Run, Signal_SIGINT.* is Signals.RaiseSIGINT/*
and ErrorState.OrphanMessages is OrphanMessages.shmem
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add test::TransportParam with the transport, the expanded shm metadata
flag and a name generator for INSTANTIATE_TEST_SUITE_P()
- Turn the per-transport TEST() copies into TEST_P() suites; the poller
and transfer tests now also run with the expanded shm metadata
- Name the multipart suite PushPullMultipart (it shared PushPull)
- Discover the tests with NO_PRETTY_VALUES, so the ctest names are
Suite.Case/transport
- The test names change, e.g. Pair.SingleMsg_MultiThreaded_ipc_shmem
is now Pair.SingleMsg_MultiThreaded_ipc/shmem
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
- Sync.h: WaitUntil() polls a condition with a deadline; Semaphore
waits with a deadline; JoiningThread joins on destruction
- ControlDevice.h: Shutdown() drives a device to Exiting from any
state; StateMachineThread runs the state machine and shuts it down
on destruction
- Transport.h: Configure() sets the session and shm properties of a
test config; IpcAddress makes a unique ipc address in /tmp and
removes the socket file
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- std::ctype<char> caches narrow()/widen() results per character in
plain char arrays of the global classic-locale facet, written without
synchronization from header-inlined code (locale_facets.h); two
threads exercising an uncached character concurrently (e.g. compiling
a std::regex in Channel::Validate) constitute a true data race that
ThreadSanitizer rightfully reports
- the stores are real and unsynchronized, so a tsan-instrumented
libstdc++ cannot help here; instead fill the caches before any thread
is spawned, which turns every later access into a pure read
- warm the lazily-installed num_put/num_get caches used by stream
insertion/extraction as well, via a small format/parse round-trip
- wire the warm-up into the gtest runner main() and, via a static
initializer, into the test device runner
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