diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-10-14 03:44:47 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-10-14 03:44:47 +0000 |
commit | 5dde9bda77de0abeb1f63932636f4c840ceafbab (patch) | |
tree | 897962ef985bd59704e806eb152fa4639b9f9bcd | |
parent | adc13099014552acb34ea4fdfbfefe3735c60d93 (diff) | |
download | clang-tools-extra-5dde9bda77de0abeb1f63932636f4c840ceafbab.tar.gz |
clangd tests: use extended regex with sed
The escaped parens seem to confuse the combination of lit, cygwin
quoting, and cygwin's sed. unxutils sed in cmd.exe is fine with both
forms, so use the extended regex form that doesn't need an escaped
paren.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@374753 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | clangd/test/compile-commands-path-in-initialize.test | 2 | ||||
-rw-r--r-- | clangd/test/system-include-extractor.test | 2 | ||||
-rw-r--r-- | clangd/test/target_info.test | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/clangd/test/compile-commands-path-in-initialize.test b/clangd/test/compile-commands-path-in-initialize.test index 2905bad4..034299df 100644 --- a/clangd/test/compile-commands-path-in-initialize.test +++ b/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 "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/clangd/test/system-include-extractor.test b/clangd/test/system-include-extractor.test index 431384d0..b61ad7a5 100644 --- a/clangd/test/system-include-extractor.test +++ b/clangd/test/system-include-extractor.test @@ -27,7 +27,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 "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 diff --git a/clangd/test/target_info.test b/clangd/test/target_info.test index 1e0cb99e..ae45c34b 100644 --- a/clangd/test/target_info.test +++ b/clangd/test/target_info.test @@ -9,7 +9,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 "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 2>&1 | FileCheck -strict-whitespace %t.test {"jsonrpc":"2.0","id":0,"method":"initialize","params":{}} |