1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

pmtest: use --gen-suppression=all with valgrind

Let valgrind do the work of writing any suppression rules needed by the
test suite.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2014-01-06 15:19:32 -05:00 committed by Allan McRae
parent 19b3ee6d39
commit d4def1c193

View File

@ -220,6 +220,7 @@ class pmtest(object):
cmd.extend(["libtool", "execute", "valgrind", "-q", cmd.extend(["libtool", "execute", "valgrind", "-q",
"--tool=memcheck", "--leak-check=full", "--tool=memcheck", "--leak-check=full",
"--show-reachable=yes", "--show-reachable=yes",
"--gen-suppressions=all",
"--log-file=%s" % os.path.join(self.root, "var/log/valgrind"), "--log-file=%s" % os.path.join(self.root, "var/log/valgrind"),
"--suppressions=%s" % suppfile]) "--suppressions=%s" % suppfile])
cmd.extend([pacman["bin"], cmd.extend([pacman["bin"],