[pacman-dev] [PATCH] Add valgrind usage for testing purpose into the HACKING guide

Laszlo Papp djszapi2 at gmail.com
Fri Nov 13 18:29:55 EST 2009


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

diff --git a/HACKING b/HACKING
index 09e782d..954d4b7 100644
--- a/HACKING
+++ b/HACKING
@@ -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:
 /////
-- 
1.6.5



More information about the pacman-dev mailing list