[Openmp-commits] [PATCH] D137746: [openmp] [test] Use omp_testsuite.h instead of directly including pthread.h

Martin Storsjö via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 9 14:27:19 PST 2022


mstorsjo created this revision.
mstorsjo added reviewers: AndreyChurbanov, JonChesterfield, natgla.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
Herald added a project: OpenMP.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137746

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


Index: openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
===================================================================
--- openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
+++ openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
@@ -8,7 +8,7 @@
 
 #include <stdio.h>
 #include <omp.h>
-#include <pthread.h>
+#include "omp_testsuite.h"
 #include "omp_my_sleep.h"
 
 /*
Index: openmp/runtime/test/tasking/bug_nested_proxy_task.c
===================================================================
--- openmp/runtime/test/tasking/bug_nested_proxy_task.c
+++ openmp/runtime/test/tasking/bug_nested_proxy_task.c
@@ -8,7 +8,7 @@
 
 #include <stdio.h>
 #include <omp.h>
-#include <pthread.h>
+#include "omp_testsuite.h"
 #include "omp_my_sleep.h"
 
 /*


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137746.474366.patch
Type: text/x-patch
Size: 771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221109/714811df/attachment-0001.bin>


More information about the Openmp-commits mailing list