[openmp] [test] Use omp_testsuite.h instead of directly including pthread.h
authorMartin Storsjö <martin@martin.st>
Wed, 2 Nov 2022 13:35:50 +0000 (13:35 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 11 Nov 2022 11:54:52 +0000 (13:54 +0200)
OpenMP tests that use pthread functions include this header instead.
On Unix systems, this header includes pthread.h, while it provides
minimal implementations of the used pthread functions for Windows.

Differential Revision: https://reviews.llvm.org/D137746

openmp/runtime/test/tasking/bug_nested_proxy_task.c
openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c

index b4e8a546028785d3e5734654de2f69565be12935..44e754bef04492d478d7c43dd2ce94cf4b64766e 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <stdio.h>
 #include <omp.h>
-#include <pthread.h>
+#include "omp_testsuite.h"
 #include "omp_my_sleep.h"
 
 /*
index d48314ba1408b4f6c4ca471f0b4f5c74b34b28f2..7737a0ef7c67c228ad51122853e896858ca3fca5 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <stdio.h>
 #include <omp.h>
-#include <pthread.h>
+#include "omp_testsuite.h"
 #include "omp_my_sleep.h"
 
 /*