Make test a bit stricter to check not just the file basename is printed.

llvm-svn: 263353
This commit is contained in:
Nico Weber 2016-03-13 02:48:51 +00:00
parent 4b5aedef16
commit efe190a6eb
1 changed files with 4 additions and 4 deletions

View File

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