[Mlir-commits] [mlir] 71aad31 - [mlir:PDLL] Use normalized paths in compilation database test

River Riddle llvmlistbot at llvm.org
Tue Apr 26 19:45:40 PDT 2022


Author: River Riddle
Date: 2022-04-26T19:45:30-07:00
New Revision: 71aad31c0bcb28e821584e9ac6acf05e7550b23c

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

LOG: [mlir:PDLL] Use normalized paths in compilation database test

This fixes issues with the compilation database when the file path
isn't in the correct form.

Added: 
    

Modified: 
    mlir/test/mlir-pdll-lsp-server/compilation_database.test

Removed: 
    


################################################################################
diff  --git a/mlir/test/mlir-pdll-lsp-server/compilation_database.test b/mlir/test/mlir-pdll-lsp-server/compilation_database.test
index 1ac999bba38c0..b861d7902c60e 100644
--- a/mlir/test/mlir-pdll-lsp-server/compilation_database.test
+++ b/mlir/test/mlir-pdll-lsp-server/compilation_database.test
@@ -1,4 +1,4 @@
-// RUN: echo -e '--- !FileInfo:\n  filepath: "/foo.pdll"\n  includes: "%S;%S/../../include"' > %t.yml
+// RUN: echo -e '--- !FileInfo:\n  filepath: "/foo.pdll"\n  includes: "%/S;%/S/../../include"' > %t.yml
 // RUN: mlir-pdll-lsp-server -pdll-compilation-database=%t.yml -lit-test < %s | FileCheck %s
 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"pdll","capabilities":{},"trace":"off"}}
 // -----


        


More information about the Mlir-commits mailing list