]> granicus.if.org Git - clang/commitdiff
Fix darwin-ld-lto test for some speical path
authorSteven Wu <stevenwu@apple.com>
Wed, 16 Oct 2019 18:12:41 +0000 (18:12 +0000)
committerSteven Wu <stevenwu@apple.com>
Wed, 16 Oct 2019 18:12:41 +0000 (18:12 +0000)
Fix the test by not assuming the prefix path of the temp directory can
be matched by a regex.

rdar://problem/56259195

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375027 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/darwin-ld-lto.c

index b5b33aa39be373e1f605dec32c5413f1e71fdaea..e02af1aed56ee9d41fdbe8e4c4023d95c87d4207 100644 (file)
 // RUN: %clang -target x86_64-apple-darwin10 %s -flto=full -### 2>&1 | \
 // RUN:   FileCheck -check-prefix=FULL_LTO_OBJECT_PATH %s
 // FULL_LTO_OBJECT_PATH: {{ld(.exe)?"}}
-// FULL_LTO_OBJECT_PATH-SAME: "-object_path_lto" "{{[a-zA-Z0-9_\/]+\/cc\-[a-zA-Z0-9_]+.o}}"
+// FULL_LTO_OBJECT_PATH-SAME: "-object_path_lto"
+// FULL_LTO_OBJECT_PATH-SAME: {{cc\-[a-zA-Z0-9_]+.o}}"
 // RUN: %clang -target x86_64-apple-darwin10 %s -flto=thin -### 2>&1 | \
 // RUN:   FileCheck -check-prefix=THIN_LTO_OBJECT_PATH %s
 // THIN_LTO_OBJECT_PATH: {{ld(.exe)?"}}
-// THIN_LTO_OBJECT_PATH-SAME: "-object_path_lto" "{{[a-zA-Z0-9_\/]+\/thinlto\-[a-zA-Z0-9_]+}}"
+// THIN_LTO_OBJECT_PATH-SAME: "-object_path_lto"
+// THIN_LTO_OBJECT_PATH-SAME: {{thinlto\-[a-zA-Z0-9_]+}}