Skip to content

Commit eac5672

Browse files
committed
Fix target_info.test on Windows with a hack
Add a quote character to the sed command to cause it to be quoted. Hopefully, which will help both gnuwin and MSys versions of sed tokenize the command line the same way.
1 parent 596b63a commit eac5672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/test/target_info.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# RUN: sed -e "s|INPUT_DIR|%/t.dir|g" %s > %t.test.1
1010
# On Windows, we need the URI in didOpen to look like "uri":"file:///C:/..."
1111
# (with the extra slash in the front), so we add it here.
12-
# RUN: sed -E -e "s|file://([A-Z]):/|file:///\1:/|g" %t.test.1 > %t.test
12+
# RUN: sed -E -e 's|"file://([A-Z]):/|"file:///\1:/|g' %t.test.1 > %t.test
1313

1414
# RUN: clangd -lit-test < %t.test 2>&1 | FileCheck -strict-whitespace %t.test
1515
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{}}

0 commit comments

Comments
 (0)