llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_compare
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
..
pointer.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 2016-06-14 21:31:42 +00:00
size_size_T_size_size.pass.cpp Protect exceptional paths under libcpp-no-exceptions 2016-11-01 15:46:16 +00:00
size_size_pointer.pass.cpp Protect exceptional paths under libcpp-no-exceptions 2016-11-01 15:46:16 +00:00
size_size_pointer_size.pass.cpp Protect exceptional paths under libcpp-no-exceptions 2016-11-01 15:46:16 +00:00
size_size_string.pass.cpp Protect exceptional paths under libcpp-no-exceptions 2016-11-01 15:46:16 +00:00
size_size_string_size_size.pass.cpp Protect exceptional paths under libcpp-no-exceptions 2016-11-01 15:46:16 +00:00
string.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 2016-06-14 21:31:42 +00:00