[clang-tools-extra] c0afb6d - [clangd] Stop filtering lit tests based on target-triple

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 30 23:03:23 PST 2023


Author: Kadir Cetinkaya
Date: 2023-01-31T08:01:38+01:00
New Revision: c0afb6de4fc837d634d99b76ae73636a1f3ca73d

URL: https://github.com/llvm/llvm-project/commit/c0afb6de4fc837d634d99b76ae73636a1f3ca73d
DIFF: https://github.com/llvm/llvm-project/commit/c0afb6de4fc837d634d99b76ae73636a1f3ca73d.diff

LOG: [clangd] Stop filtering lit tests based on target-triple

We are performing this filtering due to having unix style file paths in
certain tests. Hence we're actually trying to filter based on host
platform and not the target-triple LLVM is using.

2493a7016416c90038be5c816e12a7ad07cee054 introduced filtering based on
host platform already, so we can get rid of target-triple based
filtering now.

Added: 
    

Modified: 
    clang-tools-extra/clangd/test/dependency-output.test
    clang-tools-extra/clangd/test/did-change-configuration-params.test
    clang-tools-extra/clangd/test/test-uri-posix.test

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/test/dependency-output.test b/clang-tools-extra/clangd/test/dependency-output.test
index a53315809a5c4..c532cd00db5c1 100644
--- a/clang-tools-extra/clangd/test/dependency-output.test
+++ b/clang-tools-extra/clangd/test/dependency-output.test
@@ -1,4 +1,4 @@
-# UNSUPPORTED: system-windows, target={{.*-windows-(gnu|msvc)}}
+# UNSUPPORTED: system-windows
 # RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
 ---

diff  --git a/clang-tools-extra/clangd/test/did-change-configuration-params.test b/clang-tools-extra/clangd/test/did-change-configuration-params.test
index ae0d37a347a25..08c7b4bcb57ad 100644
--- a/clang-tools-extra/clangd/test/did-change-configuration-params.test
+++ b/clang-tools-extra/clangd/test/did-change-configuration-params.test
@@ -1,6 +1,6 @@
 # RUN: clangd -compile_args_from=lsp -lit-test < %s 2> %t | FileCheck -strict-whitespace %s
 # RUN: FileCheck --check-prefix=ERR --input-file=%t %s
-# UNSUPPORTED: system-windows, target={{.*-windows-(gnu|msvc)}}
+# UNSUPPORTED: system-windows
 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
 ---
 {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"compilationDatabaseChanges":{"/clangd-test/foo.c": {"workingDirectory":"/clangd-test", "compilationCommand": ["clang", "-c", "foo.c"]}}}}}

diff  --git a/clang-tools-extra/clangd/test/test-uri-posix.test b/clang-tools-extra/clangd/test/test-uri-posix.test
index d321b96c3ca6c..dc7dc7825c99e 100644
--- a/clang-tools-extra/clangd/test/test-uri-posix.test
+++ b/clang-tools-extra/clangd/test/test-uri-posix.test
@@ -1,5 +1,5 @@
 # RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
-# UNSUPPORTED: system-windows, target={{.*-windows-(gnu|msvc)}}
+# UNSUPPORTED: system-windows
 # Test authority-less URI
 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
 ---


        


More information about the cfe-commits mailing list