From 34b34e90fc3299debfda4add0e277f59b0a699da Mon Sep 17 00:00:00 2001 From: Joachim Protze Date: Mon, 5 Oct 2020 13:30:22 +0200 Subject: [PATCH] [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 --- openmp/runtime/test/ompt/tasks/task_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]],