From ecfb705b16feba5f11de6f0704419a3f0f9847d9 Mon Sep 17 00:00:00 2001 From: Philippe Gil Date: Thu, 11 Apr 2024 19:19:25 +0200 Subject: [PATCH] fix regression after gpr2 exceptions fixed on windows gpr-issues#259 --- .../windows/test.json | 6 ++--- .../windows/test.json | 25 +++++++++++++++---- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/testsuite/gpr_lsp/import_using_space_string/windows/test.json b/testsuite/gpr_lsp/import_using_space_string/windows/test.json index 90cff16e2..9198c98e9 100644 --- a/testsuite/gpr_lsp/import_using_space_string/windows/test.json +++ b/testsuite/gpr_lsp/import_using_space_string/windows/test.json @@ -109,15 +109,15 @@ "range": { "start": { "line": 0, - "character": 0 + "character": 5 }, "end": { "line": 0, - "character": 0 + "character": 5 } }, "severity": 1, - "message": "GPR parser unexpected ADA.IO_EXCEPTIONS.NAME_ERROR invalid path name \" \"" + "message": "imported project file \" .gpr\" not found" } ] } diff --git a/testsuite/gpr_lsp/invalid_file_name_support/windows/test.json b/testsuite/gpr_lsp/invalid_file_name_support/windows/test.json index bd96e1dae..2bd7d7157 100644 --- a/testsuite/gpr_lsp/invalid_file_name_support/windows/test.json +++ b/testsuite/gpr_lsp/invalid_file_name_support/windows/test.json @@ -109,17 +109,32 @@ "range": { "start": { "line": 0, - "character": 0 + "character": 5 }, "end": { "line": 0, - "character": 0 + "character": 5 } }, "severity": 1, - - "message": "GPR parser unexpected ADA.IO_EXCEPTIONS.NAME_ERROR invalid path name \" \"" - } + "source": "project", + "message": "imported project file \" .gpr\" not found" + }, + { + "range": { + "start": { + "line": 1, + "character": 22 + }, + "end": { + "line": 1, + "character": 22 + } + }, + "severity": 1, + "source": "project", + "message": "extended project file \" .gpr\" not found" + } ] } }