From 01c499db507eb8318c2bb377581aefe5e91ee670 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 20 Mar 2009 23:45:36 +0000 Subject: 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 --- test/Preprocessor/include-pth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3-18-g5258