Explorar el Código

Apparently XFAIL tests that are supposed to fail to compile can be problematic. They still get compiled, and if the compile succeeds, the buildbots complain. Replace the XFAIL with #error.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267591 91177308-0d34-0410-b5e6-96231b3b80d8
Marshall Clow hace 9 años
padre
commit
85d5622129

+ 4 - 2
test/std/re/re.alg/re.alg.match/basic.fail.cpp

@@ -18,12 +18,14 @@
 //                    regex_constants::match_flag_type = 
 //                      regex_constants::match_default) = delete;
 
-// XFAIL: C++98, c++03, c++11
-
 #include <regex>
 #include <cassert>
 #include "test_macros.h"
 
+#if TEST_STD_VER < 14
+#error
+#endif
+
 int main()
 {
     {

+ 4 - 2
test/std/re/re.alg/re.alg.search/basic.fail.cpp

@@ -18,12 +18,14 @@
 //                     regex_constants::match_flag_type = 
 //                       regex_constants::match_default) = delete;
 
-// XFAIL: C++98, c++03, c++11
-
 #include <regex>
 #include <cassert>
 #include "test_macros.h"
 
+#if TEST_STD_VER < 14
+#error
+#endif
+
 int main()
 {
     {

+ 4 - 2
test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp

@@ -17,12 +17,14 @@
 //                      regex_constants::match_flag_type m =
 //                        regex_constants::match_default) = delete;
 
-// XFAIL: C++98, c++03, c++11
-
 #include <regex>
 #include <cassert>
 #include "test_macros.h"
 
+#if TEST_STD_VER < 14
+#error
+#endif
+
 int main()
 {
     {

+ 4 - 2
test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.fail.cpp

@@ -18,13 +18,15 @@
 //                      regex_constants::match_flag_type m =
 //                                              regex_constants::match_default);
 
-// XFAIL: C++98, c++03, c++11
-
 #include <regex>
 #include <vector>
 #include <cassert>
 #include "test_macros.h"
 
+#if TEST_STD_VER < 14
+#error
+#endif
+
 int main()
 {
     {

+ 4 - 2
test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.fail.cpp

@@ -17,12 +17,14 @@
 //                      regex_constants::match_flag_type m =
 //                                              regex_constants::match_default);
 
-// XFAIL: C++98, c++03, c++11
-
 #include <regex>
 #include <cassert>
 #include "test_macros.h"
 
+#if TEST_STD_VER < 14
+#error
+#endif
+
 int main()
 {
     {

+ 4 - 2
test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.fail.cpp

@@ -16,12 +16,14 @@
 //                      regex_constants::match_flag_type m =
 //                                              regex_constants::match_default);
 
-// XFAIL: C++98, c++03, c++11
-
 #include <regex>
 #include <cassert>
 #include "test_macros.h"
 
+#if TEST_STD_VER < 14
+#error
+#endif
+
 int main()
 {
     {

+ 4 - 2
test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.fail.cpp

@@ -18,12 +18,14 @@
 //                      regex_constants::match_flag_type m =
 //                                              regex_constants::match_default);
 
-// XFAIL: C++98, c++03, c++11
-
 #include <regex>
 #include <cassert>
 #include "test_macros.h"
 
+#if TEST_STD_VER < 14
+#error
+#endif
+
 int main()
 {
     {