[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.
This commit is contained in:
River Riddle 2022-04-26 19:45:30 -07:00
parent 021b254547
commit 71aad31c0b
1 changed files with 1 additions and 1 deletions
mlir/test/mlir-pdll-lsp-server

View File

@ -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"}}
// -----