From d9efbdb2a3ca7a90084e90ce414a47d19f40137b Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 12 Aug 2024 15:03:32 -0400 Subject: [PATCH] Vary byte_reader tests to use various deleter<> overrides. --- test/stream/streamers/byte_reader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/stream/streamers/byte_reader.cpp b/test/stream/streamers/byte_reader.cpp index 98c52523dc..819a94d7a9 100644 --- a/test/stream/streamers/byte_reader.cpp +++ b/test/stream/streamers/byte_reader.cpp @@ -1439,7 +1439,7 @@ BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__end_zero__not_null_valid) const auto ptr = reader.read_bytes_raw(0); BOOST_REQUIRE(ptr != nullptr); BOOST_REQUIRE(reader); - allocator<>::deleter(reader.get_arena())(ptr); + reader.get_allocator().deleter(reader.get_arena())(ptr); } BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__to_end__expected) @@ -1451,7 +1451,7 @@ BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__to_end__expected) BOOST_REQUIRE(ptr != nullptr); BOOST_REQUIRE_EQUAL(*ptr, to_chunk("abc")); BOOST_REQUIRE(reader); - allocator<>::deleter(reader.get_arena())(ptr); + reader.get_allocator().deleter()(ptr); } BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__middle__expected) @@ -1464,7 +1464,7 @@ BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__middle__expected) BOOST_REQUIRE_EQUAL(*ptr, to_chunk("abc")); BOOST_REQUIRE_EQUAL(stream.get(), '*'); BOOST_REQUIRE(reader); - allocator<>::deleter(reader.get_arena())(ptr); + reader.get_allocator().deleter()(ptr); } BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__past_end__nullptr_invalid)