]> granicus.if.org Git - clang/commitdiff
Attempt to make test from r195886 portable with different shells
authorAlp Toker <alp@nuanti.com>
Wed, 27 Nov 2013 23:16:06 +0000 (23:16 +0000)
committerAlp Toker <alp@nuanti.com>
Wed, 27 Nov 2013 23:16:06 +0000 (23:16 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195889 91177308-0d34-0410-b5e6-96231b3b80d8

test/Frontend/rewrite-includes-bom.c

index 276c994fb0e7e4efd0c025f7b543e4012d7b6b65..9a62f4594afda9b3d6d73f976a6d7fc7fa301a4c 100644 (file)
@@ -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"