[clangd][test] Make sed git bash compliant
authorKadir Cetinkaya <kadircet@google.com>
Mon, 20 Apr 2020 06:27:15 +0000 (08:27 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 20 Apr 2020 06:27:15 +0000 (08:27 +0200)
clang-tools-extra/clangd/test/compile-commands-path-in-initialize.test
clang-tools-extra/clangd/test/system-include-extractor.test

index 034299d..8c7ea26 100644 (file)
@@ -10,7 +10,7 @@
 
 # On Windows, we need the URI in didOpen to look like "uri":"file:///C:/..."
 # (with the extra slash in the front), so we add it here.
-# RUN: sed -E -e "s|file://([A-Z]):/|file:///\1:/|g" %t.test.1 > %t.test
+# RUN: sed -E -e 's|"file://([A-Z]):/|"file:///\1:/|g' %t.test.1 > %t.test
 
 # RUN: clangd -lit-test < %t.test | FileCheck -strict-whitespace %t.test
 
index 74d3958..03cb540 100644 (file)
@@ -31,7 +31,7 @@
 # RUN: sed -e "s|INPUT_DIR|%/t.dir|g" %s > %t.test.1
 # On Windows, we need the URI in didOpen to look like "uri":"file:///C:/..."
 # (with the extra slash in the front), so we add it here.
-# RUN: sed -E -e "s|file://([A-Z]):/|file:///\1:/|g" %t.test.1 > %t.test
+# RUN: sed -E -e 's|"file://([A-Z]):/|"file:///\1:/|g' %t.test.1 > %t.test
 
 # Bless the mock driver we've just created so that clangd can execute it.
 # RUN: clangd -lit-test -query-driver="**.test,**.sh" < %t.test | FileCheck -strict-whitespace %t.test