[Openmp-commits] [openmp] r331212 - [OpenMP][OMPT] Fix api_calls_from_other_thread.cpp

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 30 11:46:31 PDT 2018


Author: jlpeyton
Date: Mon Apr 30 11:46:31 2018
New Revision: 331212

URL: http://llvm.org/viewvc/llvm-project?rev=331212&view=rev
Log:
[OpenMP][OMPT] Fix api_calls_from_other_thread.cpp

Removed environment setting in RUN: line that was being ignored anyways.
Changed a few specific checks to "any number"

Modified:
    openmp/trunk/runtime/test/ompt/misc/api_calls_from_other_thread.cpp

Modified: openmp/trunk/runtime/test/ompt/misc/api_calls_from_other_thread.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/misc/api_calls_from_other_thread.cpp?rev=331212&r1=331211&r2=331212&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/misc/api_calls_from_other_thread.cpp (original)
+++ openmp/trunk/runtime/test/ompt/misc/api_calls_from_other_thread.cpp Mon Apr 30 11:46:31 2018
@@ -1,4 +1,4 @@
-// RUN: env OMP_PLACES=cores %libomp-cxx-compile-and-run | FileCheck %s
+// RUN: %libomp-cxx-compile-and-run | FileCheck %s
 // REQUIRES: ompt, linux
 
 #include <thread>
@@ -34,9 +34,9 @@ int main()
 
   // CHECK: 0: NULL_POINTER=[[NULL:.*$]]
 
-  // CHECK: {{^}}[[MASTER_ID:[0-9]+]]: ompt_get_num_places()=0
+  // CHECK: {{^}}[[MASTER_ID:[0-9]+]]: ompt_get_num_places()={{[0-9]+}}
 
-  // CHECK: {{^}}[[MASTER_ID]]: ompt_get_place_proc_ids()=0
+  // CHECK: {{^}}[[MASTER_ID]]: ompt_get_place_proc_ids()={{[0-9]+}}
 
   // CHECK: {{^}}[[MASTER_ID]]: ompt_get_place_num()=-1
 




More information about the Openmp-commits mailing list