llvm-project/libcxx
Roger Ferrer Ibanez 8a915ed644 Protect exceptional paths under libcpp-no-exceptions
These tests are of the form

try {
   action-that-may-throw
   assert(!exceptional-condition)
   assert(some-other-facts)
 } catch (relevant-exception) {
   assert(exceptional-condition)
 }

Under libcpp-no-exceptions there is still value in verifying
some-other-facts while avoiding the exceptional case. So for these tests
just conditionally check some-other-facts if exceptional-condition is
false. When exception are supported make sure that a true
exceptional-condition throws an exception

Differential Revision: https://reviews.llvm.org/D26136

llvm-svn: 285697
2016-11-01 15:46:16 +00:00
..
benchmarks Optimize filesystem::path by providing weaker exception guarantees. 2016-10-31 02:46:25 +00:00
cmake [cmake] Allow testing against installed LLVM with no sources 2016-10-19 12:34:17 +00:00
docs Fix _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to always have default visibility. 2016-10-31 02:07:23 +00:00
include [libc++] Add configuration define for off_t functions 2016-10-31 15:09:10 +00:00
lib Remove additional function template definitions from the dylib 2016-10-31 03:40:29 +00:00
src Improve performance of constructing filesystem::path from strings. 2016-10-30 23:53:50 +00:00
test Protect exceptional paths under libcpp-no-exceptions 2016-11-01 15:46:16 +00:00
utils Sort ABI lists by name so that changes don't generate big diffs 2016-10-14 05:04:00 +00:00
www Implement constexpr support for reverse_iterator. Reviewed as https://reviews.llvm.org/D25534 2016-10-19 15:12:50 +00:00
.arcconfig Upgrade arcconfig to use https 2016-07-18 02:02:49 +00:00
.gitignore Implement N4606 optional 2016-10-12 07:46:20 +00:00
CMakeLists.txt Add start of filesystem benchmarks 2016-10-30 22:53:00 +00:00
CREDITS.TXT Add entry to CREDITS.TXT for propagate_const 2016-06-19 19:36:28 +00:00
LICENSE.TXT Update copyright year to 2016. 2016-03-30 22:39:53 +00:00
TODO.TXT Remove out of date items in TODO.txt 2016-09-27 01:28:47 +00:00