[PATCH] D24562: [libcxx] Recover no-exceptions XFAILs

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 14 07:00:00 PDT 2016


rmaprath updated this revision to Diff 71349.
rmaprath added a comment.

(Added more context)


https://reviews.llvm.org/D24562

Files:
  test/std/re/re.alg/re.alg.search/grep.pass.cpp

Index: test/std/re/re.alg/re.alg.search/grep.pass.cpp
===================================================================
--- test/std/re/re.alg/re.alg.search/grep.pass.cpp
+++ test/std/re/re.alg/re.alg.search/grep.pass.cpp
@@ -7,7 +7,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-// XFAIL: libcpp-no-exceptions
 // <regex>
 
 // template <class BidirectionalIterator, class Allocator, class charT, class traits>
@@ -23,6 +22,7 @@
 #include "test_macros.h"
 #include "test_iterators.h"
 
+#ifndef TEST_HAS_NO_EXCEPTIONS
 extern "C" void LLVMFuzzerTestOneInput(const char *data)
 {
     size_t size = strlen(data);
@@ -47,6 +47,7 @@
     LLVMFuzzerTestOneInput(R"XX(Õ)_%()()((\8'_%()_%()_%()_%(()_%()_%()_%(.t;)()¥f()_%()(.)_%;)()!¥f(((()()XX");
 #endif
 }
+#endif
 
 int main()
 {
@@ -82,5 +83,7 @@
         assert(m.position(0) == 0);
         assert(m.str(0) == "");
     }
+#ifndef TEST_HAS_NO_EXCEPTIONS
     fuzz_tests();
+#endif
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24562.71349.patch
Type: text/x-patch
Size: 1003 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160914/d202253e/attachment.bin>


More information about the cfe-commits mailing list