aboutsummaryrefslogtreecommitdiff
path: root/test/Tooling/clang-check-builtin-headers.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-05-23 22:24:27 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-05-23 22:24:27 +0000
commit8cf93ec4e49ebd7feca76402a0be56cf72871c3b (patch)
tree4d6107924b7fb49e2f212e65a0008b56aef7e1f4 /test/Tooling/clang-check-builtin-headers.cpp
parent62d198c5b1174279174eb35d222b5cee46f3ef6f (diff)
clang/test/Tooling: Tweak 4 tests to escape the path separator s/\\/\\\\/g in JSON.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Tooling/clang-check-builtin-headers.cpp')
-rw-r--r--test/Tooling/clang-check-builtin-headers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Tooling/clang-check-builtin-headers.cpp b/test/Tooling/clang-check-builtin-headers.cpp
index 4324dec61b..fda68ccbc0 100644
--- a/test/Tooling/clang-check-builtin-headers.cpp
+++ b/test/Tooling/clang-check-builtin-headers.cpp
@@ -1,7 +1,7 @@
// RUN: rm -rf %t
// RUN: mkdir %t
// Add a path that doesn't exist as argv[0] for the compile command line:
-// RUN: echo '[{"directory":".","command":"/random/tool -c %t/test.cpp","file":"%t/test.cpp"}]' > %t/compile_commands.json
+// RUN: echo '[{"directory":".","command":"/random/tool -c %t/test.cpp","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
// RUN: cp "%s" "%t/test.cpp"
// RUN: clang-check "%t" "%t/test.cpp" 2>&1|FileCheck %s
// FIXME: Make the above easier.
@@ -11,5 +11,5 @@
// CHECK: C++ requires
invalid;
-// FIXME: JSON doesn't like path separator '\', on Win32 hosts.
+// FIXME: This is incompatible to -fms-compatibility.
// XFAIL: win32