https://github.com/Meinersbur created https://github.com/llvm/llvm-project/pull/200549
A reviewer in #200548 required checking for a leading (back-)slash to the test despite none of the other tests doing so. Turns out, the slash is even there if the driver is unable to resolve the full path to the linker. Remove the leading slash from the test. >From 883c3866f168cf7d1dbdb664cd75a51cb6380884 Mon Sep 17 00:00:00 2001 From: Michael Kruse <[email protected]> Date: Sat, 30 May 2026 09:21:07 +0200 Subject: [PATCH] Fix leading slash --- clang/test/Driver/freebsd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/test/Driver/freebsd.c b/clang/test/Driver/freebsd.c index cce00cff3b569..7d30872e58dfe 100644 --- a/clang/test/Driver/freebsd.c +++ b/clang/test/Driver/freebsd.c @@ -105,25 +105,25 @@ // RUN: %clang -### %s 2>&1 \ // RUN: --target=mips-unknown-freebsd10.0 \ // RUN: | FileCheck --check-prefix=CHECK-MIPS %s -// CHECK-MIPS: {{[/\\]}}ld{{[^" ]*}}" +// CHECK-MIPS: ld{{[^" ]*}}" // CHECK-MIPS: "-dynamic-linker" "{{.*}}/libexec/ld-elf.so.1" // CHECK-MIPS-NOT: "--hash-style={{gnu|both}}" // RUN: %clang -### %s 2>&1 \ // RUN: --target=mipsel-unknown-freebsd10.0 \ // RUN: | FileCheck --check-prefix=CHECK-MIPSEL %s -// CHECK-MIPSEL: {{[/\\]}}ld{{[^" ]*}}" +// CHECK-MIPSEL: ld{{[^" ]*}}" // CHECK-MIPSEL: "-dynamic-linker" "{{.*}}/libexec/ld-elf.so.1" // CHECK-MIPSEL-NOT: "--hash-style={{gnu|both}}" // RUN: %clang -### %s 2>&1 \ // RUN: --target=mips64-unknown-freebsd10.0 \ // RUN: | FileCheck --check-prefix=CHECK-MIPS64 %s -// CHECK-MIPS64: {{[/\\]}}ld{{[^" ]*}}" +// CHECK-MIPS64: ld{{[^" ]*}}" // CHECK-MIPS64: "-dynamic-linker" "{{.*}}/libexec/ld-elf.so.1" // CHECK-MIPS64-NOT: "--hash-style={{gnu|both}}" // RUN: %clang -### %s 2>&1 \ // RUN: --target=mips64el-unknown-freebsd10.0 \ // RUN: | FileCheck --check-prefix=CHECK-MIPS64EL %s -// CHECK-MIPS64EL: {{[/\\]}}ld{{[^" ]*}}" +// CHECK-MIPS64EL: ld{{[^" ]*}}" // CHECK-MIPS64EL: "-dynamic-linker" "{{.*}}/libexec/ld-elf.so.1" // CHECK-MIPS64EL-NOT: "--hash-style={{gnu|both}}" _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
