From: Nico Weber Date: Sun, 13 Mar 2016 02:48:51 +0000 (+0000) Subject: Make test a bit stricter to check not just the file basename is printed. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2b61f3e928f33008f108504562ade7a36ae0cf6;p=clang Make test a bit stricter to check not just the file basename is printed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263353 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/cl-pch-showincludes.cpp b/test/Driver/cl-pch-showincludes.cpp index db4fb7b732..073710ac17 100644 --- a/test/Driver/cl-pch-showincludes.cpp +++ b/test/Driver/cl-pch-showincludes.cpp @@ -9,13 +9,13 @@ // input itself) and header3.h (included directly, above) should be printed. // RUN: %clang_cl -Werror /showIncludes /I%S/Inputs /Ycheader2.h /FIheader2.h /Fp%t.pch /c -- %s 2>&1 \ // RUN: | FileCheck -check-prefix=CHECK-YC %s -// CHECK-YC: Note: including file: {{.*header2.h}} -// CHECK-YC: Note: including file: {{.*header1.h}} -// CHECK-YC: Note: including file: {{.*header3.h}} +// CHECK-YC: Note: including file: {{.+header2.h}} +// CHECK-YC: Note: including file: {{.+header1.h}} +// CHECK-YC: Note: including file: {{.+header3.h}} // When using the pch, only the direct include is printed. // RUN: %clang_cl -Werror /showIncludes /I%S/Inputs /Yuheader2.h /FIheader2.h /Fp%t.pch /c -- %s 2>&1 \ // RUN: | FileCheck -check-prefix=CHECK-YU %s // CHECK-YU-NOT: Note: including file: {{.*header1.h}} // CHECK-YU-NOT: Note: including file: {{.*header2.h}} -// CHECK-YU: Note: including file: {{.*header3.h}} +// CHECK-YU: Note: including file: {{.+header3.h}}