From: Alp Toker <alp@nuanti.com> Date: Thu, 28 Nov 2013 05:55:40 +0000 (+0000) Subject: Fix test on Windows X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5d4915dd52e46b7aa141b6b3c02c1c87958495a;p=clang Fix test on Windows 'not' on Windows tries and fails to convert the argument to UTF-16 and back for some reason: Error: Unable to convert command-line to UTF-16 Let's try replacing it with !. (There was no obvious way to do these with FileCheck) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195907 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Frontend/rewrite-includes-bom.c b/test/Frontend/rewrite-includes-bom.c index bf3283cc6f..caa431ad9a 100644 --- a/test/Frontend/rewrite-includes-bom.c +++ b/test/Frontend/rewrite-includes-bom.c @@ -1,6 +1,6 @@ -// RUN: grep $'^\xEF\xBB\xBF' %S/Inputs/rewrite-includes-bom.h +// RUN: grep -q $'^\xEF\xBB\xBF' %S/Inputs/rewrite-includes-bom.h // RUN: %clang_cc1 -E -frewrite-includes -I %S/Inputs %s -o %t.c -// RUN: not grep $'\xEF\xBB\xBF' %t.c +// RUN: ! grep -q $'\xEF\xBB\xBF' %t.c // RUN: %clang_cc1 -fsyntax-only -verify %t.c // expected-no-diagnostics // REQUIRES: shell