diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-17 00:09:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-17 00:09:23 +0000 |
commit | 87bac6f3aaff2948d56ae2150396f1a880756746 (patch) | |
tree | 7c862406cb723b8fd61ccd4ddb3a7cb12ef76c8e | |
parent | 8596bbe00e3cd670652ddaf0c22d14aa84bb6fb8 (diff) |
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
-rw-r--r-- | test/PCH/changed-files.c | 9 |
1 files changed, 6 insertions, 3 deletions
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 |