Author: Kadir Cetinkaya Date: 2020-04-20T08:27:15+02:00 New Revision: 3be73dfde7bae80db4064cc7f7bf55d613d2deae
URL: https://github.com/llvm/llvm-project/commit/3be73dfde7bae80db4064cc7f7bf55d613d2deae DIFF: https://github.com/llvm/llvm-project/commit/3be73dfde7bae80db4064cc7f7bf55d613d2deae.diff LOG: [clangd][test] Make sed git bash compliant Added: Modified: clang-tools-extra/clangd/test/compile-commands-path-in-initialize.test clang-tools-extra/clangd/test/system-include-extractor.test Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/test/compile-commands-path-in-initialize.test b/clang-tools-extra/clangd/test/compile-commands-path-in-initialize.test index 034299df2965..8c7ea26ca94d 100644 --- a/clang-tools-extra/clangd/test/compile-commands-path-in-initialize.test +++ b/clang-tools-extra/clangd/test/compile-commands-path-in-initialize.test @@ -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 diff --git a/clang-tools-extra/clangd/test/system-include-extractor.test b/clang-tools-extra/clangd/test/system-include-extractor.test index 74d395869ad0..03cb54069d6e 100644 --- a/clang-tools-extra/clangd/test/system-include-extractor.test +++ b/clang-tools-extra/clangd/test/system-include-extractor.test @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits