Skip to content

Commit

Permalink
Merge branch 'mr/pmderodat/unparsing' into 'master'
Browse files Browse the repository at this point in the history
Testsuite: disable unparsing tests in Valgrind mode

See merge request eng/libadalang/libadalang!1510
  • Loading branch information
pmderodat committed Jan 19, 2024
2 parents 67f1d3d + 9e89339 commit 686c63e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testsuite/drivers/unparser_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import os.path

from e3.testsuite.driver.classic import TestSkip

from drivers.base_driver import BaseDriver


Expand All @@ -28,6 +30,12 @@ def unparsing_config_filename(self) -> str:
)

def run(self) -> None:
# TODO (eng/libadalang/prettier-ada#10) Prettier-ada is known to leak
# memory. Until this is fixed, do not bother running related tests in
# Valgrind mode.
if self.env.options.valgrind:
raise TestSkip("Prettier-ada is known to leak memory")

# Run the unparser on "input.ada" for the given grammar rule and
# unparse it with the default unparsing configuration, with a dump of
# the Prettier document.
Expand Down

0 comments on commit 686c63e

Please sign in to comment.