- --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>
- OnData() with single messages and with Parts on all transports;
a callback that returns false ends Run() and the device goes to Ready
- Two input channels (poller path) and one input channel per transport
(one poll thread per transport, per-channel transport override)
- ConditionalRun() ends Run() when it returns false; the rate option
limits the calls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- EXPECT_EQ/EXPECT_NE instead of EXPECT_TRUE(a == b) in the parts,
memory resource and plugin manager tests; split the && checks
- ASSERT_NE on the message pointer before it is dereferenced
- ASSERT_TRUE/ASSERT_FALSE instead of ASSERT_EQ(x, true/false)
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>
- 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>
- the in-process tests used fixed, relative ipc addresses; the socket
files stayed in the build directory (99 files after 6 runs), and two
runs of the same test at the same time could share a socket
- use test::IpcAddress: a unique path in /tmp that the destructor
removes
- drop the session suffix of the inproc addresses: an inproc address
is local to the process
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Channel.GetNumberOfConnectedPeers slept 100 ms and then expected the
peer count; on a slow runner the count can change later
- poll the count with a deadline instead
- remove the 500 ms sleep in Init() of the MultipleDevices sender and
receiver: the transfer does not depend on the order of bind and
connect
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- an ASSERT_* between thread start and join() returned with a joinable
std::thread, and its destructor called std::terminate()
- the PluginServices fixture ended the device only from Idle; after a
failure in another state, the join waited until the ctest timeout
- use StateMachineThread in the Transitions tests and in the fixture,
and JoiningThread in Region.LockOrder
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The shmem default segment is 2 GiB, and Boost reserves it with
posix_fallocate, so each test takes 2 GiB of /dev/shm
- Parallel test runs then exhaust /dev/shm and segment creation
fails with "No space left on device"
- Set --shm-segment-size 100000000 like the other tests already do
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- remove the StateMachine test: CMake did not build it, and it used an
API that no longer exists
- remove memory_resources/runner.cxx: no target uses it
- remove the mqConfig declaration (never defined) and the
SDK_TESTSUITE_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR macros (unused,
test/sdk does not exist)
- remove the unused boost/process includes from the device tests, and
the compile definition that selected their header
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Boost 1.88 replaced Boost.Process with v2, breaking the v1 API.
Boost 1.89 restores v1 compatibility via <boost/process/v1.hpp>.
- Fail configuration if Boost 1.88 is detected
- Define FAIRMQ_BOOST_PROCESS_V1_HEADER for Boost >= 1.89
- Use conditional includes to select v1.hpp or process.hpp
- Add namespace aliases (bp, bp_this) for portable API access
Delete special member functions where they are not used.
(as part of applying suggestions from cppcoreguidelines-special-member-functions)
These classes don't need to be copyable/movable:
# copy/move not used:
zmq:: TransportFactory, Socket, Message, UnmanagedRegion, Poller, Context
shm:: TransportFactory, Socket, Message, UnmanagedRegion, Poller
ofi:: TransportFactory, Socket, Message, Context
shm:: ZMsg, Region, Monitor, TerminalConfig, Manager
plugins:: Config, Control, TerminalConfig
fairmq::StateQueue, StateMachine, ProgOptions, PluginServices, PluginManager, Plugin, Device, StateSubscription
TestData, BadDevice, TestDevice (test suite heplers)
# used via ptr interface:
fairmq::UnmanagedRegion, TransportFactory, Socket, Poller, Message
These classes need to be movable/copyable:
MyClass (test suite helper), fairmq::Channel, fairmq::Parts
- 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()