Author: Paul Robinson Date: 2022-12-15T09:51:06-08:00 New Revision: 40cc041d4eec7306a67bfdbfeaa8796b8d856b60
URL: https://github.com/llvm/llvm-project/commit/40cc041d4eec7306a67bfdbfeaa8796b8d856b60 DIFF: https://github.com/llvm/llvm-project/commit/40cc041d4eec7306a67bfdbfeaa8796b8d856b60.diff LOG: [clang-tools-extra] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. 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 clang-tools-extra/clangd/test/test-uri-windows.test clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/test/dependency-output.test b/clang-tools-extra/clangd/test/dependency-output.test index ed289bbcdbe44..32b439e520e5e 100644 --- a/clang-tools-extra/clangd/test/dependency-output.test +++ b/clang-tools-extra/clangd/test/dependency-output.test @@ -1,4 +1,4 @@ -# UNSUPPORTED: windows-gnu,windows-msvc +# UNSUPPORTED: target={{.*-windows-(gnu|msvc)}} # 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 29cf1786a835a..fd33f63818a28 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: windows-gnu,windows-msvc +# UNSUPPORTED: target={{.*-windows-(gnu|msvc)}} {"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 2b67fa03e0f09..37d8a3d8e7a63 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: windows-gnu,windows-msvc +# UNSUPPORTED: target={{.*-windows-(gnu|msvc)}} # Test authority-less URI {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} --- diff --git a/clang-tools-extra/clangd/test/test-uri-windows.test b/clang-tools-extra/clangd/test/test-uri-windows.test index 3f03b2985a70f..8c8d04824538a 100644 --- a/clang-tools-extra/clangd/test/test-uri-windows.test +++ b/clang-tools-extra/clangd/test/test-uri-windows.test @@ -1,5 +1,5 @@ # RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s -# UNSUPPORTED: !(windows-gnu || windows-msvc) +# REQUIRES: target={{.*-windows-(gnu|msvc)}} # Test authority-less URI {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} --- diff --git a/clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming.cpp b/clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming.cpp index 08287e9b51e41..a6a4f6e84cc90 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming.cpp @@ -1,6 +1,6 @@ // Remove UNSUPPORTED for powerpc64le when the problem introduced by // r288563 is resolved. -// UNSUPPORTED: powerpc64le +// UNSUPPORTED: target=powerpc64le{{.*}} // RUN: %check_clang_tidy %s readability-identifier-naming %t -- \ // RUN: -config='{CheckOptions: [ \ // RUN: {key: readability-identifier-naming.AbstractClassCase, value: CamelCase}, \ _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits