Add a test that unnecessary copies aren't made of objects inserted.

Make the exception tests track the allocator usage.
Speed up the exception tests a bit.


[SVN r3490]
This commit is contained in:
Daniel James
2006-12-03 23:08:17 +00:00
parent ec310f7b80
commit 8d8f9e1942
8 changed files with 251 additions and 25 deletions

View File

@@ -5,7 +5,8 @@
import testing ;
alias framework : /boost/test//boost_unit_test_framework/<optimization>speed ;
#alias framework : /boost/test//boost_unit_test_framework/<optimization>speed ;
alias framework : /boost/test//boost_unit_test_framework ;
project unordered-test/exception-tests
: requirements

View File

@@ -27,7 +27,7 @@ struct erase_test_base : public test::exception_base
void check(T const& x) const {
std::string scope(test::scope);
BOOST_CHECK(scope.find("hash::") != std::string::npos ||
HASH_CHECK(scope.find("hash::") != std::string::npos ||
scope.find("equal_to::") != std::string::npos ||
scope == "operator==(object, object)");

View File

@@ -24,7 +24,7 @@ struct self_swap_base : public test::exception_base
std::string scope(test::scope);
#if BOOST_UNORDERED_SWAP_METHOD != 2
BOOST_CHECK(
HASH_CHECK(
scope == "hash::operator(hash)" ||
scope == "hash::operator=(hash)" ||
scope == "equal_to::operator(equal_to)" ||