[libcxx-commits] [libcxx] [libcxx][test] Amend XFAIL for failing tests (PR #70422)

Petr Hosek via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 27 00:37:58 PDT 2023


https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/70422

>From fdfdaa988c73f7f9c5f06b497fd128157d972ed8 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Fri, 27 Oct 2023 07:15:03 +0000
Subject: [PATCH] [libcxx][test] Amend XFAIL for failing tests

Some tests starting passing/failing after #69431 because Clang no longer
enables -fdelayed-template-parsing by default on Windows with C++20.
---
 .../libcxx/atomics/diagnose_invalid_memory_order.verify.cpp  | 2 +-
 libcxx/test/libcxx/fuzzing/random.pass.cpp                   | 4 ++++
 libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp          | 5 +++++
 libcxx/test/std/numerics/c.math/cmath.pass.cpp               | 4 ++++
 4 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/libcxx/test/libcxx/atomics/diagnose_invalid_memory_order.verify.cpp b/libcxx/test/libcxx/atomics/diagnose_invalid_memory_order.verify.cpp
index a6c1160c7022f07..45c3f81fffd3d44 100644
--- a/libcxx/test/libcxx/atomics/diagnose_invalid_memory_order.verify.cpp
+++ b/libcxx/test/libcxx/atomics/diagnose_invalid_memory_order.verify.cpp
@@ -8,7 +8,7 @@
 
 // This test fails because diagnose_if doesn't emit all of the diagnostics
 // when -fdelayed-template-parsing is enabled, like it is in MSVC mode.
-// XFAIL: msvc
+// XFAIL: msvc && (clang-16 || clang-17)
 
 // REQUIRES: diagnose-if-support
 
diff --git a/libcxx/test/libcxx/fuzzing/random.pass.cpp b/libcxx/test/libcxx/fuzzing/random.pass.cpp
index 79ab7ac41151c97..825b0186bc4d857 100644
--- a/libcxx/test/libcxx/fuzzing/random.pass.cpp
+++ b/libcxx/test/libcxx/fuzzing/random.pass.cpp
@@ -6,6 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
+// This test fails with because Clang no longer enables
+// -fdelayed-template-parsing by default on Windows with C++20 (#69431).
+// XFAIL: msvc && clang-18
+
 // UNSUPPORTED: c++03, c++11
 
 #include <cassert>
diff --git a/libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp
index 87767a2ee4311cb..59fa82fac42e3fc 100644
--- a/libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp
+++ b/libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp
@@ -6,6 +6,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+// This test fails with because Clang no longer enables
+// -fdelayed-template-parsing by default on Windows with C++20 (#69431).
+
+// XFAIL: msvc && clang-18
+
 // <math.h>
 
 #include <math.h>
diff --git a/libcxx/test/std/numerics/c.math/cmath.pass.cpp b/libcxx/test/std/numerics/c.math/cmath.pass.cpp
index 11a3de748cb7a69..5a4b3539256e478 100644
--- a/libcxx/test/std/numerics/c.math/cmath.pass.cpp
+++ b/libcxx/test/std/numerics/c.math/cmath.pass.cpp
@@ -6,6 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
+// This test fails with because Clang no longer enables
+// -fdelayed-template-parsing by default on Windows with C++20 (#69431).
+// XFAIL: msvc && clang-18
+
 // <cmath>
 
 #include <cmath>



More information about the libcxx-commits mailing list