Skip to content

Commit 28e4264

Browse files
authored
Pass test allocator to through ntsu_socketutil test cases for zero-copy and timestamping
1 parent eb432eb commit 28e4264

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

groups/nts/ntsu/ntsu_socketutil.t.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -8129,7 +8129,7 @@ NTSCFG_TEST_FUNCTION(ntsu::SocketUtilTest::verifyCase27)
81298129
error = ntsu::SocketOptionUtil::setZeroCopy(handle, true);
81308130
NTSCFG_TEST_OK(error);
81318131

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

8149-
bsl::list<ntsa::ZeroCopy> feedback(&ta);
8150-
bsl::unordered_set<bsl::uint32_t> sendIDs(&ta);
8149+
bsl::list<ntsa::ZeroCopy> feedback(NTSCFG_TEST_ALLOCATOR);
8150+
bsl::unordered_set<bsl::uint32_t> sendIDs(NTSCFG_TEST_ALLOCATOR);
81518151

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

81718171
SocketUtilTest::extractZeroCopyNotifications(&feedback,
81728172
handle,
8173-
&ta);
8173+
NTSCFG_TEST_ALLOCATOR);
81748174
}
81758175

81768176
// retrieve data from the socket error queue until all send system
81778177
// calls are acknowledged by the OS
81788178
while (!sendIDs.empty()) {
81798179
SocketUtilTest::extractZeroCopyNotifications(&feedback,
81808180
handle,
8181-
&ta);
8181+
NTSCFG_TEST_ALLOCATOR);
81828182

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

0 commit comments

Comments
 (0)