From: Douglas Gregor Date: Wed, 17 Mar 2010 00:09:23 +0000 (+0000) Subject: Emit output of PCH consistency checking test case to a separate text file and grep... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87bac6f3aaff2948d56ae2150396f1a880756746;p=clang Emit output of PCH consistency checking test case to a separate text file and grep that git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98695 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/PCH/changed-files.c b/test/PCH/changed-files.c index bca1caa0e8..ec4f5b4b1d 100644 --- a/test/PCH/changed-files.c +++ b/test/PCH/changed-files.c @@ -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