]> granicus.if.org Git - clang/commitdiff
Fix include-pth.c test case to (hopefully) more resilient to where and how tests
authorTed Kremenek <kremenek@apple.com>
Fri, 20 Mar 2009 23:45:36 +0000 (23:45 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 20 Mar 2009 23:45:36 +0000 (23:45 +0000)
are executed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67419 91177308-0d34-0410-b5e6-96231b3b80d8

test/Preprocessor/include-pth.c

index d42550bfccef3c7ed971ab64d63400cc9121e2a6..64b46eb15ec932c0e899d3834ec9056f06995b0f 100644 (file)
@@ -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"