[libcxx-commits] [libcxx] [libc++][test] Remove some `XFAIL` for LLVM libc in multi-threaded tests (PR #228036)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 1 04:05:10 PDT 2026


https://github.com/frederick-vs-ja created https://github.com/llvm/llvm-project/pull/228036

Recently, LLVM libc fixed https://llvm.org/PR194029 in https://llvm.org/PR226134, so more libc++ tests passes with LLVM libc now.

>From a4794893a85899ec3befb19d01871d6460f0deae Mon Sep 17 00:00:00 2001
From: "A. Jiang" <de34 at live.cn>
Date: Thu, 1 Oct 2026 18:57:25 +0800
Subject: [PATCH] [libc++][test] Remove some `XFAIL` for LLVM libc in
 multi-threaded tests

Recently, LLVM libc fixed https://llvm.org/PR194029 in
https://llvm.org/PR226134, so more libc++ tests passes with LLVM libc
now.
---
 .../PR30202_notify_from_pthread_created_thread.pass.cpp        | 3 ---
 .../syncstream/osyncstream/thread/several_threads.pass.cpp     | 3 ---
 .../notify_all_at_thread_exit_lwg3343.pass.cpp                 | 3 ---
 3 files changed, 9 deletions(-)

diff --git a/libcxx/test/libcxx/thread/thread.condition/PR30202_notify_from_pthread_created_thread.pass.cpp b/libcxx/test/libcxx/thread/thread.condition/PR30202_notify_from_pthread_created_thread.pass.cpp
index 1df75885e4347f0..d840e3644149e7b 100644
--- a/libcxx/test/libcxx/thread/thread.condition/PR30202_notify_from_pthread_created_thread.pass.cpp
+++ b/libcxx/test/libcxx/thread/thread.condition/PR30202_notify_from_pthread_created_thread.pass.cpp
@@ -20,9 +20,6 @@
 // Test that this function works with threads that were not created by
 // std::thread. See https://llvm.org/PR30202
 
-// Segfault
-// XFAIL: LLVM-LIBC-FIXME
-
 #include <condition_variable>
 #include <mutex>
 #include <thread>
diff --git a/libcxx/test/std/input.output/syncstream/osyncstream/thread/several_threads.pass.cpp b/libcxx/test/std/input.output/syncstream/osyncstream/thread/several_threads.pass.cpp
index 82d43c1673d2d5e..dbf2ded1b532e2b 100644
--- a/libcxx/test/std/input.output/syncstream/osyncstream/thread/several_threads.pass.cpp
+++ b/libcxx/test/std/input.output/syncstream/osyncstream/thread/several_threads.pass.cpp
@@ -21,9 +21,6 @@
 // but the words should be written without interleaving. To increment the
 // change of interleaving words are written one character at a time.
 
-// segmentation fault
-// XFAIL: LLVM-LIBC-FIXME
-
 #include <cassert>
 #include <chrono>
 #include <mutex>
diff --git a/libcxx/test/std/thread/thread.condition/notify_all_at_thread_exit_lwg3343.pass.cpp b/libcxx/test/std/thread/thread.condition/notify_all_at_thread_exit_lwg3343.pass.cpp
index f1b349017b1a5a3..61094eced4cb21f 100644
--- a/libcxx/test/std/thread/thread.condition/notify_all_at_thread_exit_lwg3343.pass.cpp
+++ b/libcxx/test/std/thread/thread.condition/notify_all_at_thread_exit_lwg3343.pass.cpp
@@ -23,9 +23,6 @@
 //
 // void notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk);
 
-// segmentation fault
-// XFAIL: LLVM-LIBC-FIXME
-
 #include "make_test_thread.h"
 #include "test_macros.h"
 



More information about the libcxx-commits mailing list