summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2019-03-19 00:00:30 +0000
committerEric Fiselier <eric@efcs.ca>2019-03-19 00:00:30 +0000
commit0f8041b6e2c56b67a29f7ced568b0bc4ab3ebe97 (patch)
tree8f5cccb8cbdae2a24cd42631fee0c02d2a80e0b5 /libcxx/test/support
parent1092fc9057b634a77d30c2ae730887030b602496 (diff)
downloadbcm5719-llvm-0f8041b6e2c56b67a29f7ced568b0bc4ab3ebe97.tar.gz
bcm5719-llvm-0f8041b6e2c56b67a29f7ced568b0bc4ab3ebe97.zip
Remove unused try catch blocks from old debug tests
llvm-svn: 356429
Diffstat (limited to 'libcxx/test/support')
-rw-r--r--libcxx/test/support/container_debug_tests.hpp40
1 files changed, 14 insertions, 26 deletions
diff --git a/libcxx/test/support/container_debug_tests.hpp b/libcxx/test/support/container_debug_tests.hpp
index ff843eb3abf..347196ac79c 100644
--- a/libcxx/test/support/container_debug_tests.hpp
+++ b/libcxx/test/support/container_debug_tests.hpp
@@ -149,39 +149,27 @@ struct BasicContainerChecks {
}
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();
}
}
OpenPOWER on IntegriCloud