From 9e8933965a5ec4d63967a7e132c4e85fcf0b2392 Mon Sep 17 00:00:00 2001 From: Pierre-Marie de Rodat Date: Fri, 19 Jan 2024 08:58:08 +0000 Subject: [PATCH] Testsuite: disable unparsing tests in Valgrind mode See 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. --- testsuite/drivers/unparser_driver.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testsuite/drivers/unparser_driver.py b/testsuite/drivers/unparser_driver.py index 4159078b4..37159a04c 100644 --- a/testsuite/drivers/unparser_driver.py +++ b/testsuite/drivers/unparser_driver.py @@ -2,6 +2,8 @@ import os.path +from e3.testsuite.driver.classic import TestSkip + from drivers.base_driver import BaseDriver @@ -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.