diff options
-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 |