From: Kaelyn Uhrain Date: Tue, 10 Apr 2012 22:27:27 +0000 (+0000) Subject: Fix quoting to allow shell expansion to occur for shell variables X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edec2ee3bcde5ade31a76e329dcc4ac0fa7c7d11;p=clang Fix quoting to allow shell expansion to occur for shell variables introduced by the test harness' expansion of %t. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154443 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Tooling/clang-check-pwd.cpp b/test/Tooling/clang-check-pwd.cpp index 75cee14c2e..cb94344203 100644 --- a/test/Tooling/clang-check-pwd.cpp +++ b/test/Tooling/clang-check-pwd.cpp @@ -1,6 +1,6 @@ // RUN: rm -rf %t // RUN: mkdir %t -// RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp","file":"%t/test.cpp"}]' > %t/compile_commands.json +// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" > %t/compile_commands.json // RUN: cp "%s" "%t/test.cpp" // RUN: PWD="%t" clang-check "%t" "test.cpp" 2>&1|FileCheck %s // FIXME: Make the above easier.