mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 13:11:36 +00:00
fix(shmem): refuse to send an empty Parts
- zeromq refuses an empty Parts with TransferCode::error; shmem sent a message with zero parts and returned 0, and the receiver got a Receive() with zero parts - Refuse it in shmem too, with the same warning - Enable PartsTransfer.EmptyPartsIsRefused - Update the documentation pages that described the defect, and the source line links into the changed files Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -118,11 +118,8 @@ TEST_P(PartsTransfer, EmptyAndNonEmpty)
|
||||
EXPECT_EQ(AsString(in[2]), "cde");
|
||||
}
|
||||
|
||||
// Known defect: the transports do not agree on an empty Parts. zeromq refuses
|
||||
// it (TransferCode::error). shmem sends a message with zero parts, returns 0,
|
||||
// and the receiver gets a Receive() with zero parts. Enable this test when
|
||||
// both transports have the same behavior.
|
||||
TEST_P(PartsTransfer, DISABLED_EmptyPartsIsRefused)
|
||||
// All transports refuse to send an empty Parts.
|
||||
TEST_P(PartsTransfer, EmptyPartsIsRefused)
|
||||
{
|
||||
ProgOptions config;
|
||||
test::Configure(config, tools::Uuid(), GetParam().expandedShmMetadata);
|
||||
|
||||
Reference in New Issue
Block a user