[cfe-commits] r98695 - /cfe/trunk/test/PCH/changed-files.c

Douglas Gregor dgregor at apple.com
Tue Mar 16 17:09:23 PDT 2010


Author: dgregor
Date: Tue Mar 16 19:09:23 2010
New Revision: 98695

URL: http://llvm.org/viewvc/llvm-project?rev=98695&view=rev
Log:
Emit output of PCH consistency checking test case to a separate text file and grep that

Modified:
    cfe/trunk/test/PCH/changed-files.c

Modified: cfe/trunk/test/PCH/changed-files.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/changed-files.c?rev=98695&r1=98694&r2=98695&view=diff
==============================================================================
--- cfe/trunk/test/PCH/changed-files.c (original)
+++ cfe/trunk/test/PCH/changed-files.c Tue Mar 16 19:09:23 2010
@@ -5,15 +5,18 @@
 // 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





More information about the cfe-commits mailing list