llvm-project/libcxx/test
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
..
libcxx Change from "XFAIL: libcpp-no-exceptions" to "UNSUPPORTED: libcpp-no-exceptions" tests that only check exceptions and nothing else 2016-10-31 08:47:53 +00:00
std Protect exceptional paths under libcpp-no-exceptions 2016-11-01 15:46:16 +00:00
support Fix archetypes.hpp under libcpp-no-extensions and std level < 14 2016-10-31 14:14:13 +00:00
CMakeLists.txt Fix linker script generation for in-tree builds 2016-10-09 21:34:03 +00:00
lit.cfg Add mork workarounds for running the test suite against libstdc++ 2016-10-12 00:28:14 +00:00
lit.site.cfg.in Add mork workarounds for running the test suite against libstdc++ 2016-10-12 00:28:14 +00:00
nothing_to_do.pass.cpp Test commit: Reverting whitespace changes 2014-07-17 05:10:03 +00:00
testit Add 'nostdinc++' to the flags used by testit. Makes the tests run better on Mac OS X with the new depr.c headers change 2015-11-01 21:14:22 +00:00