Remove unused try catch blocks from old debug tests
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@356429 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/support/container_debug_tests.hpp b/test/support/container_debug_tests.hpp
index ff843eb..347196a 100644
--- a/test/support/container_debug_tests.hpp
+++ b/test/support/container_debug_tests.hpp
@@ -149,39 +149,27 @@
}
static void run_iterator_tests() {
- try {
- TestNullIterators<iterator>();
- TestNullIterators<const_iterator>();
- if constexpr (IsBiDir) { DecrementBegin(); }
- IncrementEnd();
- DerefEndIterator();
- } catch (...) {
- assert(false && "uncaught debug exception");
- }
+ TestNullIterators<iterator>();
+ TestNullIterators<const_iterator>();
+ if constexpr (IsBiDir) { DecrementBegin(); }
+ IncrementEnd();
+ DerefEndIterator();
}
static void run_container_tests() {
- try {
- CopyInvalidatesIterators();
- MoveInvalidatesIterators();
- if constexpr (CT != CT_ForwardList) {
- EraseIter();
- EraseIterIter();
- }
- } catch (...) {
- assert(false && "uncaught debug exception");
+ CopyInvalidatesIterators();
+ MoveInvalidatesIterators();
+ if constexpr (CT != CT_ForwardList) {
+ EraseIter();
+ EraseIterIter();
}
}
static void run_allocator_aware_tests() {
- try {
- SwapNonEqualAllocators();
- if constexpr (CT != CT_ForwardList ) {
- // FIXME: This should work for both forward_list and string
- SwapInvalidatesIterators();
- }
- } catch (...) {
- assert(false && "uncaught debug exception");
+ SwapNonEqualAllocators();
+ if constexpr (CT != CT_ForwardList ) {
+ // FIXME: This should work for both forward_list and string
+ SwapInvalidatesIterators();
}
}