Skip to content

Commit

Permalink
Merge branch 'config_file' into 'master'
Browse files Browse the repository at this point in the history
Fixing test

See merge request eng/ide/ada_language_server!1861
  • Loading branch information
ogorodnik committed Dec 19, 2024
2 parents 965730c + 92e4a1f commit d57fd2b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions testsuite/ada_lsp/config_file/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
Location,
)

# create default.cgpr configuration file that will use sjlj runtime
subprocess.check_call(["gprconfig", "--batch", "--config=Ada,,sjlj,,GNAT"])

# create default.cgpr configuration file that will use not-default runtime
subprocess.check_call(["gprconfig", "--batch", "--config=Ada,,light,,GNAT"])


@test()
Expand All @@ -42,7 +43,7 @@ async def do_testing(lsp: ALSLanguageClient) -> None:
# Check result
assert result
assert isinstance(result, Location)
assertEqual("sjlj" in result.uri, True)
assertEqual("light" in result.uri, True)

# Check relative to root paths
lsp.didChangeConfig(
Expand All @@ -62,4 +63,4 @@ async def do_testing(lsp: ALSLanguageClient) -> None:
# Check result
assert result
assert isinstance(result, Location)
assertEqual("sjlj" in result.uri, True)
assertEqual("light" in result.uri, True)

0 comments on commit d57fd2b

Please sign in to comment.