Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libcxx] Amend XFAIL for failing tests on Windows #70422

Merged
merged 1 commit into from Oct 31, 2023

Conversation

petrhosek
Copy link
Member

@petrhosek petrhosek commented Oct 27, 2023

Some tests starting passing/failing after #69431 because Clang no longer enables -fdelayed-template-parsing by default on Windows with C++20.

@petrhosek petrhosek requested a review from a team as a code owner October 27, 2023 07:17
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Oct 27, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Oct 27, 2023

@llvm/pr-subscribers-libcxx

Author: Petr Hosek (petrhosek)

Changes

Some tests starting passing/failing after #69431 because Clang no longer enables -fdelayed-template-parsing by default on Windows with C++20 modules.


Full diff: https://github.com/llvm/llvm-project/pull/70422.diff

4 Files Affected:

  • (modified) libcxx/test/libcxx/atomics/diagnose_invalid_memory_order.verify.cpp (+1-1)
  • (modified) libcxx/test/libcxx/fuzzing/random.pass.cpp (+5)
  • (modified) libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp (+5)
  • (modified) libcxx/test/std/numerics/c.math/cmath.pass.cpp (+4)
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..21b7c9348c07821 100644
--- a/libcxx/test/libcxx/fuzzing/random.pass.cpp
+++ b/libcxx/test/libcxx/fuzzing/random.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 modules
+// (#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..eaa8b1ac44c7471 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 modules (#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..ab7c759dcb438b2 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 modules (#69431).
+// XFAIL: msvc && clang-18
+
 // <cmath>
 
 #include <cmath>

@ChuanqiXu9
Copy link
Member

Clang no longer enables -fdelayed-template-parsing by default on Windows with C++20 modules.

Sorry for confusing. Actually that PR don't enable -fdelayed-template-parsing by default on Windows with C++20. It is not related to modules. I change the title in the commit messages: 366ffba too. But it looks like the github PR doesn't update automatically.

@petrhosek
Copy link
Member Author

@ldionne @EricWF does this look good to you?

@petrhosek petrhosek changed the title [libcxx][test] Amend XFAIL for failing tests [libcxx] Amend XFAIL for failing tests on Windows Oct 27, 2023
Some tests starting passing/failing after llvm#69431 because Clang no longer
enables -fdelayed-template-parsing by default on Windows with C++20.
@petrhosek
Copy link
Member Author

@ldionne @EricWF ping?

Copy link
Member

@ldionne ldionne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, we had some dealings with an ABI break, then the week-end happened, etc. Thanks for fixing.

@ldionne ldionne merged commit a5403a3 into llvm:main Oct 31, 2023
4 checks passed
@petrhosek petrhosek deleted the libcxx-xfail-tests branch December 1, 2023 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. test-suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants