r195889 - Attempt to make test from r195886 portable with different shells

Alp Toker alp at nuanti.com
Wed Nov 27 15:16:06 PST 2013


Author: alp
Date: Wed Nov 27 17:16:06 2013
New Revision: 195889

URL: http://llvm.org/viewvc/llvm-project?rev=195889&view=rev
Log:
Attempt to make test from r195886 portable with different shells

Windows and Hexagon complained. It's not clear which command is failing, so
will back out the changes if this doesn't do the trick.

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=195889&r1=195888&r2=195889&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/rewrite-includes-bom.c (original)
+++ cfe/trunk/test/Frontend/rewrite-includes-bom.c Wed Nov 27 17:16:06 2013
@@ -1,5 +1,5 @@
-// 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: grep -E "^\\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 -E "\\xEF\\xBB\\xBF"
 // expected-no-diagnostics
 
 #include "rewrite-includes-bom.h"





More information about the cfe-commits mailing list