r263353 - Make test a bit stricter to check not just the file basename is printed.
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 12 18:48:51 PST 2016
Author: nico
Date: Sat Mar 12 20:48:51 2016
New Revision: 263353
URL: http://llvm.org/viewvc/llvm-project?rev=263353&view=rev
Log:
Make test a bit stricter to check not just the file basename is printed.
Modified:
cfe/trunk/test/Driver/cl-pch-showincludes.cpp
Modified: cfe/trunk/test/Driver/cl-pch-showincludes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-pch-showincludes.cpp?rev=263353&r1=263352&r2=263353&view=diff
==============================================================================
--- cfe/trunk/test/Driver/cl-pch-showincludes.cpp (original)
+++ cfe/trunk/test/Driver/cl-pch-showincludes.cpp Sat Mar 12 20:48:51 2016
@@ -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}}
More information about the cfe-commits
mailing list