Author: Michael Kruse Date: 2026-05-30T08:18:18Z New Revision: 02af47b6053dff5d9b81a04b4a55e747a31c5ff0
URL: https://github.com/llvm/llvm-project/commit/02af47b6053dff5d9b81a04b4a55e747a31c5ff0 DIFF: https://github.com/llvm/llvm-project/commit/02af47b6053dff5d9b81a04b4a55e747a31c5ff0.diff LOG: [Clang][test] Fix leading slash (#200549) A reviewer in #200012 required checking for a leading (back-)slash to the test despite none of the other tests doing so. Turns out, the slash isn't there if the driver is unable to resolve the full path to the linker. Remove the leading slash from the test. Fixes reported buildbot failures: * clang-solaris11-sparcv9 * clang-solaris11-amd64 Added: Modified: clang/test/Driver/freebsd.c Removed: ################################################################################ diff --git a/clang/test/Driver/freebsd.c b/clang/test/Driver/freebsd.c index cce00cff3b569..bb0558b9ceb3e 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
