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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-offload

Author: Johannes Doerfert (jdoerfert)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/122331.diff


1 Files Affected:

- (modified) offload/test/sanitizer/kernel_crash_async.c (+1-1) 


``````````diff
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)

``````````

</details>


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


More information about the llvm-commits mailing list