aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-20 23:45:36 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-20 23:45:36 +0000
commit01c499db507eb8318c2bb377581aefe5e91ee670 (patch)
treeb016c00b2ad86bddd668f9fab11c45cc63a9ec65
parente33bea4ef34598e7a4a6a3a117392268998552d4 (diff)
Fix include-pth.c test case to (hopefully) more resilient to where and how tests
are executed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67419 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Preprocessor/include-pth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Preprocessor/include-pth.c b/test/Preprocessor/include-pth.c
index d42550bfcc..64b46eb15e 100644
--- a/test/Preprocessor/include-pth.c
+++ b/test/Preprocessor/include-pth.c
@@ -1 +1,2 @@
-// RUN: clang -x c-header file_to_include.h -o %t && clang -include-pth %t %s -E | grep 'file_to_include'
+// RUN: clang -x c-header %s -o %t && clang -include-pth %t %s -E | grep 'file_to_include' | count 2
+#include "file_to_include.h"