[cfe-commits] r154443 - /cfe/trunk/test/Tooling/clang-check-pwd.cpp

Kaelyn Uhrain rikka at google.com
Tue Apr 10 15:27:27 PDT 2012


Author: rikka
Date: Tue Apr 10 17:27:27 2012
New Revision: 154443

URL: http://llvm.org/viewvc/llvm-project?rev=154443&view=rev
Log:
Fix quoting to allow shell expansion to occur for shell variables
introduced by the test harness' expansion of %t.

Modified:
    cfe/trunk/test/Tooling/clang-check-pwd.cpp

Modified: cfe/trunk/test/Tooling/clang-check-pwd.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Tooling/clang-check-pwd.cpp?rev=154443&r1=154442&r2=154443&view=diff
==============================================================================
--- cfe/trunk/test/Tooling/clang-check-pwd.cpp (original)
+++ cfe/trunk/test/Tooling/clang-check-pwd.cpp Tue Apr 10 17:27:27 2012
@@ -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.





More information about the cfe-commits mailing list