r193473 - Quote wildcard in test's grep argument

Alp Toker alp at nuanti.com
Sat Oct 26 07:52:48 PDT 2013


Author: alp
Date: Sat Oct 26 09:52:48 2013
New Revision: 193473

URL: http://llvm.org/viewvc/llvm-project?rev=193473&view=rev
Log:
Quote wildcard in test's grep argument

The * could otherwise cause shell pathname expansion.

Modified:
    cfe/trunk/test/CodeGen/2007-04-14-FNoBuiltin.c

Modified: cfe/trunk/test/CodeGen/2007-04-14-FNoBuiltin.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2007-04-14-FNoBuiltin.c?rev=193473&r1=193472&r2=193473&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/2007-04-14-FNoBuiltin.c (original)
+++ cfe/trunk/test/CodeGen/2007-04-14-FNoBuiltin.c Sat Oct 26 09:52:48 2013
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin -o - | grep call.*printf
+// RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin -o - | grep 'call.*printf'
 // Check that -fno-builtin is honored.
 
 extern int printf(const char*, ...);





More information about the cfe-commits mailing list