Skip to content

Commit 34b34e9

Browse files
committed
[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
1 parent 34b61d6 commit 34b34e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,
9696
// CHECK-SAME: memory_addr=[[NULL]], memory_size=0, result=0
9797

9898
// CHECK: ompt_event_task_create: task_id=[[TASK_ID_0:[0-9]+]]
99-
// CHECK: ompt_event_task_create: task_id=[[TASK_ID_1:[0-9]+]]
99+
// CHECK-DAG: ompt_event_task_create: task_id=[[TASK_ID_1:[0-9]+]]
100100

101101
// Expects non-zero address, size, and result
102102
// CHECK-DAG: ompt_event_task_schedule: task_id=[[TASK_ID_0]],

0 commit comments

Comments
 (0)