From f326683d42614d03c4849fe9b40c7264b260900a Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Sat, 12 Mar 2022 00:51:52 -0500 Subject: [PATCH] Add allocator_construct and allocator_destroy tests to Jamfile --- test/Jamfile.v2 | 2 ++ test/allocator_construct_test.cpp | 2 +- test/allocator_destroy_test.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index ab00563..4bb7499 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -240,6 +240,8 @@ run allocator_allocate_hint_test.cpp ; run allocator_deallocate_test.cpp ; run allocator_max_size_test.cpp ; run allocator_soccc_test.cpp ; +run allocator_construct_test.cpp ; +run allocator_destroy_test.cpp ; run allocator_traits_test.cpp ; lib lib_typeid : lib_typeid.cpp : shared:LIB_TYPEID_DYN_LINK=1 ; diff --git a/test/allocator_construct_test.cpp b/test/allocator_construct_test.cpp index ded2278..2bd1db2 100644 --- a/test/allocator_construct_test.cpp +++ b/test/allocator_construct_test.cpp @@ -36,7 +36,7 @@ int main() } #if !defined(BOOST_NO_CXX11_ALLOCATOR) { - A1 a; + A2 a; int i = 0; boost::allocator_construct(a, &i, 5); BOOST_TEST_EQ(i, 6); diff --git a/test/allocator_destroy_test.cpp b/test/allocator_destroy_test.cpp index 9f2e0c0..0b5b64e 100644 --- a/test/allocator_destroy_test.cpp +++ b/test/allocator_destroy_test.cpp @@ -52,7 +52,7 @@ int main() } #if !defined(BOOST_NO_CXX11_ALLOCATOR) { - A1 a; + A2 a; int i = 5; boost::allocator_destroy(a, &i); BOOST_TEST_EQ(i, 0);