[libc-commits] [libc] [libc][test][NFC] Fix pthread_setschedparam_test flakiness (PR #212067)

Alexey Samsonov via libc-commits libc-commits at lists.llvm.org
Sat Jul 25 20:34:27 PDT 2026


================
@@ -18,15 +18,27 @@
 #include "src/pthread/pthread_create.h"
 #include "src/pthread/pthread_getschedparam.h"
 #include "src/pthread/pthread_join.h"
+#include "src/pthread/pthread_mutex_destroy.h"
+#include "src/pthread/pthread_mutex_init.h"
+#include "src/pthread/pthread_mutex_lock.h"
+#include "src/pthread/pthread_mutex_unlock.h"
 #include "src/pthread/pthread_self.h"
 #include "src/pthread/pthread_setschedparam.h"
 #include "test/IntegrationTest/test.h"
 
-static void *child_func(void *) { return nullptr; }
+#include <pthread.h>
----------------
vonosmas wrote:

This include looks accidental, since you tend to explicitly refer to all the functions in LIBC_NAMESPACE and include proxy headers for types.

https://github.com/llvm/llvm-project/pull/212067


More information about the libc-commits mailing list