[llvm] [OpenMP][FIX] Adjust test to be non-flaky (PR #122331)

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 9 10:32:20 PST 2025


https://github.com/jdoerfert created https://github.com/llvm/llvm-project/pull/122331

The test runs asynchronous kernels and depending on the timing the output is slightly different. We now only check for the common parts of the output.

>From 0bc613202c36e8f1e118f18623275b2f98d7e42e Mon Sep 17 00:00:00 2001
From: Johannes Doerfert <johannes at jdoerfert.de>
Date: Thu, 9 Jan 2025 10:16:00 -0800
Subject: [PATCH] [OpenMP][FIX] Adjust test to be non-flaky

The test runs asynchronous kernels and depending on the timing the
output is slightly different. We now only check for the common parts of
the output.
---
 offload/test/sanitizer/kernel_crash_async.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/offload/test/sanitizer/kernel_crash_async.c b/offload/test/sanitizer/kernel_crash_async.c
index ee22ba504018be..d51418f8178897 100644
--- a/offload/test/sanitizer/kernel_crash_async.c
+++ b/offload/test/sanitizer/kernel_crash_async.c
@@ -36,4 +36,4 @@ int main(void) {
 // TRACE: Kernel {{.*}} (__omp_offloading_{{.*}}_main_l29)
 // TRACE:     launchKernel
 //
-// CHECK: Kernel {{[0-9]}}: {{.*}} (__omp_offloading_{{.*}}_main_l29)
+// CHECK: Kernel {{.*}} (__omp_offloading_{{.*}}_main_l29)



More information about the llvm-commits mailing list