1 #include <boost/test/unit_test.hpp>
5 #include "utilities/simple_pool.hpp"
20 void run_simple_test(bool locked
)
22 simple_pool
<> pool(16*1024, locked
);
24 foo
* f1
= static_cast<foo
*>(pool
.malloc(sizeof(f1
)));
30 void run_simple_test_2(bool locked
)
34 pool
.init(16*1024, locked
);
36 foo
* f1
= static_cast<foo
*>(pool
.malloc(sizeof(f1
)));
44 BOOST_AUTO_TEST_CASE( simple_pool_tests
)
46 run_simple_test(false);
47 run_simple_test(true);
48 run_simple_test_2(false);
49 run_simple_test_2(true);