|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2008-04-05 12:08:23
Author: danieljames
Date: 2008-04-05 12:08:23 EDT (Sat, 05 Apr 2008)
New Revision: 44057
URL: http://svn.boost.org/trac/boost/changeset/44057
Log:
Fix some bugs in the exception testing code.
Text files modified:
branches/unordered/trunk/libs/unordered/test/helpers/exception_test.hpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
Modified: branches/unordered/trunk/libs/unordered/test/helpers/exception_test.hpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/helpers/exception_test.hpp (original)
+++ branches/unordered/trunk/libs/unordered/test/helpers/exception_test.hpp 2008-04-05 12:08:23 EDT (Sat, 05 Apr 2008)
@@ -163,6 +163,7 @@
test_runner(Test const& t) : test_(t) {}
void operator()() const {
DISABLE_EXCEPTIONS;
+ test::scope = "";
BOOST_DEDUCED_TYPENAME Test::data_type x(test_.init());
BOOST_DEDUCED_TYPENAME Test::strong_type strong;
strong.store(x);
@@ -223,9 +224,15 @@
success = true;
}
catch(test_failure) {
+ BOOST_ERROR("test_failure caught.");
break;
}
+ catch(test_exception) {
+ continue;
+ }
catch(...) {
+ BOOST_ERROR("Unexpected exception.");
+ break;
}
} while(!success);
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk