]> granicus.if.org Git - clang/commitdiff
Emit output of PCH consistency checking test case to a separate text file and grep...
authorDouglas Gregor <dgregor@apple.com>
Wed, 17 Mar 2010 00:09:23 +0000 (00:09 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 17 Mar 2010 00:09:23 +0000 (00:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98695 91177308-0d34-0410-b5e6-96231b3b80d8

test/PCH/changed-files.c

index bca1caa0e88e8283d144903cffce2c156cd6f290..ec4f5b4b1d31a309bc256b102aeafb0ef223a068 100644 (file)
@@ -5,15 +5,18 @@ const char *s2 = m0;
 // RUN: echo '#define m0 ""' > %t.h
 // RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
 // RUN: echo '' > %t.h
-// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2>&1 | grep "size of file"
+// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr
+// RUN: grep "size of file" %t.stderr
 
 // RUN: echo '#define m0 000' > %t.h
 // RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
 // RUN: echo '' > %t.h
-// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2>&1 | grep "size of file"
+// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr
+// RUN: grep "size of file" %t.stderr
 
 // RUN: echo '#define m0 000' > %t.h
 // RUN: echo "#define m1 'abcd'" >> %t.h
 // RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
 // RUN: echo '' > %t.h
-// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2>&1 | grep "size of file"
+// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr
+// RUN: grep "size of file" %t.stderr