Re: Up-to-date Valgrind suppression file for GLib/GTK+ ?
- Date: Thu, 29 Dec 2016 23:55:57 +0000
- From: Emmanuele Bassi <ebassi@xxxxxxxxx>
- Subject: Re: Up-to-date Valgrind suppression file for GLib/GTK+ ?
On 29 December 2016 at 22:55, Stefan Sauer <ensonic@xxxxxxxxxxxxxxx> wrote:
> Sorry for reviving the thread. What if upstream lib ship a suppression
> file and add a pkg-config variable pointing to it? Then apps can use
> $PKG_CONFIG --variable=valgrind_suppressions gtk+-3.0
> to collect those and e.g. export them into a valgrind wrapper or use
> them in the test runners.
As Philip explained earlier in the thread, Valgrind can only accept a
single suppression file. So, if GTK+ ships a suppression file, it
would need to include suppression rules for all its dependencies, and
you would still be unable to add your own on top of that. The only way
around would be for every dependency you have to ship a suppression
file for their own symbols only, without duplicates, concatenate them
all to your own, and then feed it to your test suite. Every time
there's an update, you'd have to redo the concatenation and possibly
weed out duplicates manually.
[@] ebassi [@gmail.com]
gtk-devel-list mailing list