Protect std::string tests under libcpp-no-exceptions
authorRoger Ferrer Ibanez <roger.ferreribanez@arm.com>
Tue, 29 Nov 2016 16:40:19 +0000 (16:40 +0000)
committerRoger Ferrer Ibanez <roger.ferreribanez@arm.com>
Tue, 29 Nov 2016 16:40:19 +0000 (16:40 +0000)
commit9d03c03858e99525969edade670a8f8ccb706d64
tree8c8f87c41bbd438cc51384d2387a0125ca3d20d4
parentf2e50651f653adaaa72cfe6c3c9a7c6fc87124cb
Protect std::string tests under libcpp-no-exceptions

Skip tests that expect an exception be thrown and/or disable
unreachable catch handlers.

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

llvm-svn: 288158
libcxx/test/std/strings/basic.string/string.capacity/capacity.pass.cpp
libcxx/test/std/strings/basic.string/string.ops/string_substr/substr.pass.cpp