From 0c4d48f076a953410ab8a4baf46ad85ac0afe024 Mon Sep 17 00:00:00 2001 From: Steven Wu Date: Wed, 16 Oct 2019 18:12:41 +0000 Subject: [PATCH] Fix darwin-ld-lto test for some speical path 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/Driver/darwin-ld-lto.c b/test/Driver/darwin-ld-lto.c index b5b33aa39b..e02af1aed5 100644 --- a/test/Driver/darwin-ld-lto.c +++ b/test/Driver/darwin-ld-lto.c @@ -23,8 +23,10 @@ // 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_]+}} -- 2.40.0