r195907 - Fix test on Windows
Alp Toker
alp at nuanti.com
Wed Nov 27 21:55:40 PST 2013
Author: alp
Date: Wed Nov 27 23:55:40 2013
New Revision: 195907
URL: http://llvm.org/viewvc/llvm-project?rev=195907&view=rev
Log:
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)
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=195907&r1=195906&r2=195907&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/rewrite-includes-bom.c (original)
+++ cfe/trunk/test/Frontend/rewrite-includes-bom.c Wed Nov 27 23:55:40 2013
@@ -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
More information about the cfe-commits
mailing list