diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-05-23 22:24:27 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-05-23 22:24:27 +0000 |
commit | 2e8124b6df9ebc429e81f7beff3c04adf6049f73 (patch) | |
tree | fc916aef950135f20fb02c2aa684e7faffb419dc /clang/test/Tooling/clang-check-pwd.cpp | |
parent | 9b2d17c6137b5d79c7e1765e24ad35465a7fa095 (diff) | |
download | bcm5719-llvm-2e8124b6df9ebc429e81f7beff3c04adf6049f73.tar.gz bcm5719-llvm-2e8124b6df9ebc429e81f7beff3c04adf6049f73.zip |
clang/test/Tooling: Tweak 4 tests to escape the path separator s/\\/\\\\/g in JSON.
llvm-svn: 157351
Diffstat (limited to 'clang/test/Tooling/clang-check-pwd.cpp')
-rw-r--r-- | clang/test/Tooling/clang-check-pwd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/Tooling/clang-check-pwd.cpp b/clang/test/Tooling/clang-check-pwd.cpp index 96417df2795..8dd9e6e926d 100644 --- a/clang/test/Tooling/clang-check-pwd.cpp +++ b/clang/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\"}]" | sed -e 's/\\/\\\\/g' > %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. @@ -9,4 +9,3 @@ invalid; // REQUIRES: shell -// XFAIL: mingw32 |