[Openmp-commits] [openmp] 34b34e9 - [OpenMP][Tests] NFC: fix flaky test failure caused by rare scheduling

Joachim Protze via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 5 07:58:54 PDT 2020


Author: Joachim Protze
Date: 2020-10-05T16:55:32+02:00
New Revision: 34b34e90fc3299debfda4add0e277f59b0a699da

URL: https://github.com/llvm/llvm-project/commit/34b34e90fc3299debfda4add0e277f59b0a699da
DIFF: https://github.com/llvm/llvm-project/commit/34b34e90fc3299debfda4add0e277f59b0a699da.diff

LOG: [OpenMP][Tests] NFC: fix flaky test failure caused by rare scheduling

The worker thread can start execution of the task before creation of the second task
Fixes the spurious failure reported in https://reviews.llvm.org/D61657

Added: 
    

Modified: 
    openmp/runtime/test/ompt/tasks/task_memory.c

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/test/ompt/tasks/task_memory.c b/openmp/runtime/test/ompt/tasks/task_memory.c
index a48cef22bf4c..5a459b40857e 100644
--- a/openmp/runtime/test/ompt/tasks/task_memory.c
+++ b/openmp/runtime/test/ompt/tasks/task_memory.c
@@ -96,7 +96,7 @@ ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,
 // CHECK-SAME: memory_addr=[[NULL]], memory_size=0, result=0
 
 // CHECK: ompt_event_task_create: task_id=[[TASK_ID_0:[0-9]+]]
-// CHECK: ompt_event_task_create: task_id=[[TASK_ID_1:[0-9]+]]
+// CHECK-DAG: ompt_event_task_create: task_id=[[TASK_ID_1:[0-9]+]]
 
 // Expects non-zero address, size, and result
 // CHECK-DAG: ompt_event_task_schedule: task_id=[[TASK_ID_0]],


        


More information about the Openmp-commits mailing list