From 7f82d7004f330f491ea81570a85832c1e7bf3682 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Wed, 27 Nov 2013 23:16:06 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195889 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Frontend/rewrite-includes-bom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Frontend/rewrite-includes-bom.c b/test/Frontend/rewrite-includes-bom.c index 276c994fb0..9a62f4594a 100644 --- a/test/Frontend/rewrite-includes-bom.c +++ b/test/Frontend/rewrite-includes-bom.c @@ -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" -- 2.50.1