FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

LinkBack Thread Tools
Old 11-14-2009, 04:41 AM
Allan McRae
Default Add valgrind usage for testing purpose into the HACKING guide

Laszlo Papp wrote:

Signed-off-by: Laszlo Papp <djszapi@archlinux.us>
HACKING | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/HACKING b/HACKING
index 09e782d..954d4b7 100644
@@ -133,6 +133,16 @@ For pacman:
#include "anythingelse.h"

+How to test pacman more using valgrind?

+Try to run some commands using valgrind with a command like:
+valgrind --leak-check=full --trace-children=yes -- src/pacman/.libs/pacman -Syu
+Be careful, valgrind reports lots of errors, even some errors that may not be related to
+pacman. You should have a little experience of valgrind to ignore the noise.
vim: set ts=2 sw=2 syntax=asciidoc et:

Why would we provide instructions on how to use valgrind? That seems to
be a job for the valgrind authors...

Anyway, I believe the pactest suite is set up to use valgrind so you
would be better using that to detect leaks. Also, we have a
valgrind.supp file to suppress a lot of the false positives.


Thread Tools

All times are GMT. The time now is 05:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org