]> granicus.if.org Git - clang/commitdiff
Fix test on Windows
authorAlp Toker <alp@nuanti.com>
Thu, 28 Nov 2013 05:55:40 +0000 (05:55 +0000)
committerAlp Toker <alp@nuanti.com>
Thu, 28 Nov 2013 05:55:40 +0000 (05:55 +0000)
'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

test/Frontend/rewrite-includes-bom.c

index bf3283cc6f402ccb76a347d67da25b180402123a..caa431ad9aaff5efa25148e20bb205ce8f0c9c47 100644 (file)
@@ -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