[libcxx] r299656 - Revert "Restore Missing awk regex tests. Thanks to dexonsmith for noticing, and proposing this as https://reviews.llvm.org/D16541"

Mehdi Amini via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 6 08:56:55 PDT 2017


Author: mehdi_amini
Date: Thu Apr  6 10:56:55 2017
New Revision: 299656

URL: http://llvm.org/viewvc/llvm-project?rev=299656&view=rev
Log:
Revert "Restore Missing awk regex tests. Thanks to dexonsmith for noticing, and proposing this as https://reviews.llvm.org/D16541"

This reverts commit r299652, 32bits MacOS is broken.

Modified:
    libcxx/trunk/test/std/re/re.alg/re.alg.match/awk.pass.cpp

Modified: libcxx/trunk/test/std/re/re.alg/re.alg.match/awk.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/re/re.alg/re.alg.match/awk.pass.cpp?rev=299656&r1=299655&r2=299656&view=diff
==============================================================================
--- libcxx/trunk/test/std/re/re.alg/re.alg.match/awk.pass.cpp (original)
+++ libcxx/trunk/test/std/re/re.alg/re.alg.match/awk.pass.cpp Thu Apr  6 10:56:55 2017
@@ -26,7 +26,7 @@
 
 int main()
 {
-    {
+/*    {
         std::cmatch m;
         const char s[] = "a";
         assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk)));
@@ -616,12 +616,13 @@ int main()
         assert(m.size() == 0);
     }
     std::locale::global(std::locale(LOCALE_cs_CZ_ISO8859_2));
-    {
+*/    {
+    /*
         std::cmatch m;
         const char s[] = "m";
-        assert(std::regex_match(s, m, 
-                      std::regex("[a[=M=]z]", std::regex_constants::awk)));
-        assert(m.size() == 1);
+        assert(std::regex_match(s, m, std::regex("[a[=M=]z]",
+                                                 std::regex_constants::awk);
+       assert(m.size() == 1);
         assert(!m.prefix().matched);
         assert(m.prefix().first == s);
         assert(m.prefix().second == m[0].first);
@@ -631,8 +632,8 @@ int main()
         assert(m.length(0) == std::char_traits<char>::length(s));
         assert(m.position(0) == 0);
         assert(m.str(0) == s);
-    }
-    {
+*/    }
+/*    {
         std::cmatch m;
         const char s[] = "Ch";
         assert(std::regex_match(s, m, std::regex("[a[.ch.]z]",
@@ -1388,4 +1389,4 @@ int main()
         assert(m.position(0) == 0);
         assert(m.str(0) == s);
     }
-}
+*/}




More information about the cfe-commits mailing list