[clang-tools-extra] 54c03d8 - [clangd][lit] Update document-link.test to respect custom resource-dir locations

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 2 03:25:09 PDT 2020


Author: Kadir Cetinkaya
Date: 2020-10-02T12:24:06+02:00
New Revision: 54c03d8f7da72fdf1a9e122391c51c2f0ea7b298

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

LOG: [clangd][lit] Update document-link.test to respect custom resource-dir locations

Differential Revision: https://reviews.llvm.org/D88721

Added: 
    

Modified: 
    clang-tools-extra/clangd/test/document-link.test

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/test/document-link.test b/clang-tools-extra/clangd/test/document-link.test
index 7802fe784568..a4c82e5b2fb6 100644
--- a/clang-tools-extra/clangd/test/document-link.test
+++ b/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>"}}}


        


More information about the cfe-commits mailing list