Skip to content

Commit

Permalink
Pass test allocator to through ntsu_socketutil test cases for zero-co…
Browse files Browse the repository at this point in the history
…py and timestamping
  • Loading branch information
mattrm456 committed Oct 8, 2024
1 parent eb432eb commit 947c7aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions groups/nts/ntsu/ntsu_socketutil.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8129,7 +8129,7 @@ NTSCFG_TEST_FUNCTION(ntsu::SocketUtilTest::verifyCase27)
error = ntsu::SocketOptionUtil::setZeroCopy(handle, true);
NTSCFG_TEST_OK(error);

bsl::vector<char> message(msgSize, &ta);
bsl::vector<char> message(msgSize, NTSCFG_TEST_ALLOCATOR);
for (int i = 0; i < msgSize; ++i) {
message[i] = bsl::rand() % 100;
}
Expand All @@ -8146,8 +8146,8 @@ NTSCFG_TEST_FUNCTION(ntsu::SocketUtilTest::verifyCase27)
// NTSCFG_TEST_TRUE(endpoint.parse("[fe80::215:5dff:fe8d:6bd1]:5555"));
}

bsl::list<ntsa::ZeroCopy> feedback(&ta);
bsl::unordered_set<bsl::uint32_t> sendIDs(&ta);
bsl::list<ntsa::ZeroCopy> feedback(NTSCFG_TEST_ALLOCATOR);
bsl::unordered_set<bsl::uint32_t> sendIDs(NTSCFG_TEST_ALLOCATOR);

for (int i = 0; i < numMessagesToSend; ++i) {
ntsa::SendContext context;
Expand All @@ -8170,15 +8170,15 @@ NTSCFG_TEST_FUNCTION(ntsu::SocketUtilTest::verifyCase27)

SocketUtilTest::extractZeroCopyNotifications(&feedback,
handle,
&ta);
NTSCFG_TEST_ALLOCATOR);
}

// retrieve data from the socket error queue until all send system
// calls are acknowledged by the OS
while (!sendIDs.empty()) {
SocketUtilTest::extractZeroCopyNotifications(&feedback,
handle,
&ta);
NTSCFG_TEST_ALLOCATOR);

while (!feedback.empty()) {
const ntsa::ZeroCopy& zc = feedback.front();
Expand Down

0 comments on commit 947c7aa

Please sign in to comment.