- CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR point to the top-level project
and break add_subdirectory() and FetchContent
- Find the helper modules relative to the CMakeLists.txt that includes them
- Replace @CMAKE_BINARY_DIR@ in the example test scripts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- --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>
- For both allocation algorithms (rbtree_best_fit, simple_seq_fit)
- A message larger than the segment throws MessageBadAlloc
- A full segment throws, and allocates again after a release
- bad-alloc-max-attempts and bad-alloc-attempt-interval
- shm-throw-bad-alloc=false waits until memory is free;
Interrupt() ends the wait with MessageBadAlloc
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>
- RateLimiter: lower bound of the duration at 200 Hz; rate 0 does not
sleep
- InstanceLimiter: throws above the limit, counts down on destruction
- Semaphore and SharedSemaphore: counts, blocking Wait(), shared count
- ToString(), StrStartsWith(), StrEndsWith(), ToStrVector()
- Uuid() and UuidHash() are unique
- execute(): output with prefix, stderr, exit code, stdin input,
signal, timeout
- Skip Tools.NetworkDefaultIP on a machine without a default route
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Parts: variadic constructor, At() and operator[] (const and not),
At() out of range throws, Empty(), Clear(), move
- Transfer of Parts with an empty part on all transports
- A pmr container from the transport memory resource becomes a message
without a copy and transfers its data, on all transports
- Add disabled tests for two known defects: zeromq refuses an empty
Parts and shmem sends it; shmem Receive(Parts) of a single-message
Send() reads the message size as the number of parts and crashes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- An unknown transport name throws; an empty id gets a uuid
- shmem refuses pub and sub sockets, zeromq creates them
- GetType() per transport
- Receive is interrupted after Interrupt() and works after Resume()
- NewSimpleMessage() copies string, literal and value data;
NewStaticMessage() uses the caller's buffer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- AutoBind: a second bind on a port in use gets a port in the range,
and both endpoints transfer data
- NoAutoBind: BindEndpoint() fails and keeps the endpoint
- PAIR over tcp in both directions, on all transports
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- JSONParser: sub-channels inherit and override the channel values,
numSockets expansion, defaults, device selection by key or id,
errors for no id, no fairMQOptions, no channel name and no file
- SuboptParser: all keys with their types, one sub-channel per address,
numSockets, unknown keys, no channel name, no device id
- Add disabled tests for a known defect: a value of the wrong type
silently gives the default
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Walk the device lifecycle; in each state check that the illegal
transitions are refused and leave the state unchanged
- ResetDevice from each device state, ErrorFound from each state
- A transition is refused while another one is pending
- State change and new transition subscriptions, unsubscribe,
PrepareState() and HandleStates() order
- Name round trips for all states and transitions; unknown names throw
- Add a disabled test for a known defect: ChangeState() returns true in
the Error state
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>
- 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>
- introduce FAIRMQ_TEST_LD_LIBRARY_PATH, which prepends a directory to
each test's environment via ctest, so the tests can run against an
alternative runtime library (e.g. a tsan-instrumented libstdc++)
- LD_LIBRARY_PATH rather than an injected rpath: an rpath added via the
linker flags cannot precede the rpath spack's gcc adds through its
specs file, so the compiler's own libstdc++ would keep winning the
runtime search order
- scoped per test on purpose: an instrumented library has unresolved
__tsan_* symbols and must not be loaded into uninstrumented tools
like cmake, ctest or ninja
- fail the configuration instead of silently dropping the injection on
CMake < 3.22 (ENVIRONMENT_MODIFICATION)
- cover the example tests too; they share the instrumented runtime but
not the locale-cache warmup (their main() is the installed public
header). The custom-controller env block was dead before: it tested
lsan_options, which only ever existed in the add_example() function
scope, so the test also never received the LSan suppressions
- 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
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
BREAKING CHANGE
Due to a lack of users, we remove the experimental code. The
latest implementation can be found in release v1.4.56. This does
not mean it will never be picked up again, but for now there are
no plans.
* Optimize appending another Parts container
* Remove redundant/verbose comments
* Change r-value args to move-only types into l-value args for
readability
* Deprecate `AtRef(int)`, redundant, just dereference at call site
* Deprecate `AddPart(Message*)`, avoid owning raw pointer args
* Add various const overloads
* Add `Empty()` and `Clear()` member functions
* Add `noexcept` where applicable
- 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()