]> granicus.if.org Git - clang/commitdiff
Fix quoting to allow shell expansion to occur for shell variables
authorKaelyn Uhrain <rikka@google.com>
Tue, 10 Apr 2012 22:27:27 +0000 (22:27 +0000)
committerKaelyn Uhrain <rikka@google.com>
Tue, 10 Apr 2012 22:27:27 +0000 (22:27 +0000)
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

test/Tooling/clang-check-pwd.cpp

index 75cee14c2ed969cd616a0f38b02d6d86de0af55c..cb943442037d81a63cc4ab466d042a71be415600 100644 (file)
@@ -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.