diff --git a/test/allocator_utilities_test.cpp b/test/allocator_utilities_test.cpp index 2b06720..def9b4b 100644 --- a/test/allocator_utilities_test.cpp +++ b/test/allocator_utilities_test.cpp @@ -5,14 +5,17 @@ #include #include -#include +#include +#include +#include typedef std::allocator std_int_allocator; typedef boost::detail::allocator::rebind_to::type char_allocator; typedef boost::detail::allocator::rebind_to::type int_allocator; typedef boost::detail::allocator::rebind_to::type char_allocator2; -int main() { +int main() +{ BOOST_STATIC_ASSERT((!boost::is_same::value)); BOOST_STATIC_ASSERT((boost::is_same::value)); @@ -25,7 +28,7 @@ int main() { // Check allocate works okay { char_allocator::pointer p = a2.allocate(10); - assert(p); + BOOST_TEST(!!p); a2.deallocate(p, 10); } @@ -33,8 +36,10 @@ int main() { { int_allocator::pointer p2 = a3.allocate(1); boost::detail::allocator::construct(p2, 25); - assert(*p2 == 25); + BOOST_TEST(*p2 == 25); boost::detail::allocator::destroy(p2); a3.deallocate(p2, 1); } + + return boost::report_errors(); }