This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG54c03d8f7da7: [clangd][lit] Update document-link.test to respect custom resource-dir locations (authored by kadircet).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88721/new/ https://reviews.llvm.org/D88721 Files: clang-tools-extra/clangd/test/document-link.test Index: clang-tools-extra/clangd/test/document-link.test =================================================================== --- clang-tools-extra/clangd/test/document-link.test +++ clang-tools-extra/clangd/test/document-link.test @@ -1,4 +1,5 @@ -# RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s +# %resource_dir actually points at builtin_include_dir, go up one directory. +# RUN: clangd -lit-test -resource-dir=%resource_dir/.. < %s | FileCheck -strict-whitespace %s {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} --- {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":"#include <stdint.h>\n#include <stddef.h>"}}}
Index: clang-tools-extra/clangd/test/document-link.test =================================================================== --- clang-tools-extra/clangd/test/document-link.test +++ clang-tools-extra/clangd/test/document-link.test @@ -1,4 +1,5 @@ -# RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s +# %resource_dir actually points at builtin_include_dir, go up one directory. +# RUN: clangd -lit-test -resource-dir=%resource_dir/.. < %s | FileCheck -strict-whitespace %s {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} --- {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":"#include <stdint.h>\n#include <stddef.h>"}}}
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits