[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: valgrind-tests and suppression files
From: |
Jeffrey Walton |
Subject: |
Re: valgrind-tests and suppression files |
Date: |
Sat, 23 May 2020 21:23:04 -0400 |
On Sat, May 23, 2020 at 5:40 PM Marc Nieper-Wißkirchen
<address@hidden> wrote:
>
> Is there any built-in support in the valgrind-tests module for
> suppression files? For example, if I want to run my tests under
> valgrind (if available), I write
>
> LOG_COMPILER = $(VALGRIND)
>
> or, in case I use libtool,
>
> LOG_COMPILER = $(LIBTOOL) --mode=execute $(VALGRIND)
>
> But how to add valgrind suppression files in this context?
>
> LOG_COMPILER = $(VALGRIND) --suppressions=...
>
> is not a good solution because it will fail when VALGRIND is empty
> because valgrind-tests couldn't find a valgrind.
>
> What's the canonical solution of this problem?
Placing Valgrind annotations in the source file so the annotations
cannot be disgorged from the source file. It also benefits users so
things "just work" for them out of the box. No reading manuals, no
crafting suppression files.
I don't know if Valgrind support has matured that far, though.
Jeff