Skip to content

Commit

Permalink
Merge branch 'mr/adjust_tests' into 'edge'
Browse files Browse the repository at this point in the history
Adjust the baselines of two tests to the new behaviour of gpr2

See merge request eng/ide/ada_language_server!1602
  • Loading branch information
setton committed Jul 2, 2024
2 parents 247721e + f556f3d commit 3cc3b36
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 50 deletions.
7 changes: 4 additions & 3 deletions testsuite/ada_lsp/project_config/project_config_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,18 @@
}
}
},
"comment": "NOTE: we are loading an invalid project which has two files containing the same compilation unit: the behavior is undetermined.",
"wait":[{
"id": "defname-1",
"result":{
"uri": "$URI{third.ads}",
"uri": "$URI{second.ads}",
"range": {
"start": {
"line": 3,
"line": 0,
"character": 10
},
"end": {
"line": 3,
"line": 0,
"character": 22
}
}
Expand Down
77 changes: 30 additions & 47 deletions testsuite/ada_lsp/refactoring_diagnostics/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,27 +169,10 @@
},
"severity": 4,
"source": "project",
"message": "Project Problems",
"relatedInformation": [
{
"location": {
"uri": "$URI{default.gpr}",
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 0
}
}
},
"message": "Unique project in root directory was found and loaded, but it wasn't explicitly configured."
}
]
"message": "Unique project in root directory was found and loaded, but it wasn't explicitly configured."
},
{
"message": "Failed to execute the Add Parameter refactoring.",
"range": {
"start": {
"line": 12,
Expand All @@ -200,38 +183,38 @@
"character": 16
}
},
"severity": 1,
"source": "Ada",
"message": "Failed to execute the Add Parameter refactoring.",
"relatedInformation": [
{
"location": {
"uri": "$URI{test.ads}",
"range": {
"start": {
"line": 12,
"character": 3
},
"end": {
"line": 14,
"character": 16
}
}
},
"message": "Can't change the controlling parameter of a primitive"
}
]
{
"location": {
"range": {
"start": {
"line": 12,
"character": 3
},
"end": {
"line": 14,
"character": 16
}
},
"uri": "$URI{test.ads}"
},
"message": "Can't change the controlling parameter of a primitive"
}
],
"severity": 1,
"source": "Ada"
}
]
}
},
{
"id": 8,
}
},
{
"error": {
"code": -32001,
"message": "Failed to execute the Add Parameter refactoring."
}
}
"code": -32001,
"message": "Failed to execute the Add Parameter refactoring."
},
"id": 8,
"jsonrpc": "2.0"
}
]
}
},
Expand Down

0 comments on commit 3cc3b36

Please sign in to comment.