Remember to disable exceptions before checking final value

This commit is contained in:
Daniel James
2017-05-05 00:46:07 +01:00
parent 47a8c3fc67
commit 6ef17a0f0e
8 changed files with 58 additions and 9 deletions

View File

@@ -53,6 +53,7 @@ template <class T> struct rehash_test0 : rehash_test_base<T>
void run(T& x) const
{
x.rehash(0);
DISABLE_EXCEPTIONS;
test::check_container(x, this->values);
test::check_equivalent_keys(x);
@@ -65,6 +66,7 @@ template <class T> struct rehash_test1 : rehash_test_base<T>
void run(T& x) const
{
x.rehash(200);
DISABLE_EXCEPTIONS;
test::check_container(x, this->values);
test::check_equivalent_keys(x);
@@ -77,6 +79,7 @@ template <class T> struct rehash_test2 : rehash_test_base<T>
void run(T& x) const
{
x.rehash(0);
DISABLE_EXCEPTIONS;
test::check_container(x, this->values);
test::check_equivalent_keys(x);
@@ -89,6 +92,7 @@ template <class T> struct rehash_test3 : rehash_test_base<T>
void run(T& x) const
{
x.rehash(200);
DISABLE_EXCEPTIONS;
test::check_container(x, this->values);
test::check_equivalent_keys(x);
@@ -101,6 +105,7 @@ template <class T> struct rehash_test4 : rehash_test_base<T>
void run(T& x) const
{
x.rehash(0);
DISABLE_EXCEPTIONS;
test::check_container(x, this->values);
test::check_equivalent_keys(x);
@@ -113,6 +118,7 @@ template <class T> struct rehash_test5 : rehash_test_base<T>
void run(T& x) const
{
x.rehash(0);
DISABLE_EXCEPTIONS;
test::check_container(x, this->values);
test::check_equivalent_keys(x);