From ab85071bf9982abb69e9acdf1a97379c4e512961 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Mon, 3 Mar 2025 17:12:51 -0600 Subject: [PATCH] A more precise matching for the driver test Maybe this fixes issues detected after #128894 --- clang/test/Driver/hip-gz-options.hip | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/test/Driver/hip-gz-options.hip b/clang/test/Driver/hip-gz-options.hip index bdef24e052ffb..36de8e8404020 100644 --- a/clang/test/Driver/hip-gz-options.hip +++ b/clang/test/Driver/hip-gz-options.hip @@ -8,7 +8,7 @@ // RUN: -fgpu-rdc --offload-arch=gfx906 %s -nogpulib -nogpuinc \ // RUN: -ggdb -gz=zlib 2>&1 | FileCheck %s -// CHECK-DAG: {{".*clang.*" .* "--compress-debug-sections=zlib"}} -// CHECK-DAG: {{".*lld.*" .* "--compress-debug-sections=zlib"}} -// CHECK-DAG: {{".*clang.*" .* "--compress-debug-sections=zlib"}} +// CHECK-DAG: {{".*clang(-[0-9]+)?(.exe)?" .* "--compress-debug-sections=zlib"}} +// CHECK-DAG: {{".*lld(.exe)?" .* "--compress-debug-sections=zlib"}} +// CHECK-DAG: {{".*clang(-[0-9]+)?(.exe)?" .* "--compress-debug-sections=zlib"}} // CHECK: "--compress-debug-sections=zlib"