1 #include <boost/test/unit_test.hpp>
6 #include "server/memory_pool.hpp"
10 simple_pool
<false> rt_pool
;
11 } /* namespace nova */
15 BOOST_AUTO_TEST_CASE( init_pool
)
17 rt_pool
.init(1024*1024);
21 BOOST_AUTO_TEST_CASE( vector_test
)
23 rt_pool
.init(1024*1024);
26 std::vector
<int, nova::rt_pool_allocator
<int> > vec
;
27 for (int i
= 0; i
!= size
; ++i
)
31 BOOST_AUTO_TEST_CASE( set_test
)
34 std::set
<int, std::less
<int>, nova::rt_pool_allocator
<int> > vec
;
35 for (int i
= 0; i
!= size
; ++i
)