From 2e8124b6df9ebc429e81f7beff3c04adf6049f73 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 23 May 2012 22:24:27 +0000 Subject: clang/test/Tooling: Tweak 4 tests to escape the path separator s/\\/\\\\/g in JSON. llvm-svn: 157351 --- clang/test/Tooling/clang-check-chdir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/Tooling/clang-check-chdir.cpp') diff --git a/clang/test/Tooling/clang-check-chdir.cpp b/clang/test/Tooling/clang-check-chdir.cpp index 5d02c95fabd..d9f172848b4 100644 --- a/clang/test/Tooling/clang-check-chdir.cpp +++ b/clang/test/Tooling/clang-check-chdir.cpp @@ -2,7 +2,7 @@ // compilation database. // RUN: rm -rf %t // RUN: mkdir %t -// RUN: echo "[{\"directory\":\"%t\",\"command\":\"clang -c test.cpp -I.\",\"file\":\"%t/test.cpp\"}]" > %t/compile_commands.json +// RUN: echo "[{\"directory\":\"%t\",\"command\":\"clang -c test.cpp -I.\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\//g' > %t/compile_commands.json // RUN: cp "%s" "%t/test.cpp" // RUN: touch "%t/clang-check-test.h" // RUN: clang-check "%t" "%t/test.cpp" 2>&1|FileCheck %s @@ -13,5 +13,5 @@ // CHECK: C++ requires invalid; -// FIXME: JSON doesn't like path separator '\', on Win32 hosts. +// FIXME: This is incompatible to -fms-compatibility. // XFAIL: win32 -- cgit v1.2.3