[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.
This commit is contained in:
Fangrui Song 2022-06-13 19:44:24 -07:00
parent dafd3cf8b1
commit 11cf75f602
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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