[clang] 11cf75f - [Driver][test] Make ananas.c and solaris-ld.c robust
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 13 19:44:30 PDT 2022
Author: Fangrui Song
Date: 2022-06-13T19:44:24-07:00
New Revision: 11cf75f602e6717e2a5195b3e8ca161dd9de9945
URL: https://github.com/llvm/llvm-project/commit/11cf75f602e6717e2a5195b3e8ca161dd9de9945
DIFF: https://github.com/llvm/llvm-project/commit/11cf75f602e6717e2a5195b3e8ca161dd9de9945.diff
LOG: [Driver][test] Make ananas.c and solaris-ld.c robust
`{{.*}}crt{{[^.]+}}.o` may match `"-r" "/tmp/lit-tmp-9ur5crtx/solaris-ld-4fa504.o"`
in a lit invocation.
Added:
Modified:
clang/test/Driver/ananas.c
clang/test/Driver/solaris-ld.c
Removed:
################################################################################
diff --git a/clang/test/Driver/ananas.c b/clang/test/Driver/ananas.c
index a6cabed9b190..463797470f53 100644
--- a/clang/test/Driver/ananas.c
+++ b/clang/test/Driver/ananas.c
@@ -21,4 +21,4 @@
// RUN: | FileCheck %s --check-prefix=CHECK-RELOCATABLE
// CHECK-RELOCATABLE: "-r"
// CHECK-RELOCATABLE-NOT: "-l
-// CHECK-RELOCATABLE-NOT: {{.*}}crt{{[^.]+}}.o
+// CHECK-RELOCATABLE-NOT: /crt{{[^.]+}}.o
diff --git a/clang/test/Driver/solaris-ld.c b/clang/test/Driver/solaris-ld.c
index 2d532aadb927..2193f35ac054 100644
--- a/clang/test/Driver/solaris-ld.c
+++ b/clang/test/Driver/solaris-ld.c
@@ -112,5 +112,5 @@
// CHECK-RELOCATABLE: "-L
// CHECK-RELOCATABLE: "-r"
// CHECK-RELOCATABLE-NOT: "-l
-// CHECK-RELOCATABLE-NOT: {{.*}}crt{{[^.]+}}.o
-// CHECK-RELOCATABLE-NOT: {{.*}}values-{{[^.]+}}.o
+// CHECK-RELOCATABLE-NOT: /crt{{[^.]+}}.o
+// CHECK-RELOCATABLE-NOT: /values-{{[^.]+}}.o
More information about the cfe-commits
mailing list