r195904 - Ensure that the output BOM test check is run

Alp Toker alp at nuanti.com
Wed Nov 27 17:22:29 PST 2013


Author: alp
Date: Wed Nov 27 19:22:29 2013
New Revision: 195904

URL: http://llvm.org/viewvc/llvm-project?rev=195904&view=rev
Log:
Ensure that the output BOM test check is run

The first command's output was only reaching one of the two checks previously.

Modified:
    cfe/trunk/test/Frontend/rewrite-includes-bom.c

Modified: cfe/trunk/test/Frontend/rewrite-includes-bom.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-bom.c?rev=195904&r1=195903&r2=195904&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/rewrite-includes-bom.c (original)
+++ cfe/trunk/test/Frontend/rewrite-includes-bom.c Wed Nov 27 19:22:29 2013
@@ -1,5 +1,7 @@
 // RUN: grep $'^\xEF\xBB\xBF' %S/Inputs/rewrite-includes-bom.h
-// RUN: %clang_cc1 -E -frewrite-includes -I %S/Inputs %s -o - | %clang_cc1 -fsyntax-only -verify -x c - | not grep $'\xEF\xBB\xBF'
+// RUN: %clang_cc1 -E -frewrite-includes -I %S/Inputs %s -o %t.c
+// RUN: not grep $'\xEF\xBB\xBF' %t.c
+// RUN: %clang_cc1 -fsyntax-only -verify %t.c
 // expected-no-diagnostics
 // REQUIRES: shell
 





More information about the cfe-commits mailing list