Move valgrind suppression rules to debug subdirectory

This will require a new run of configure as some makefiles have changed

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18625 57a11ea4-9604-0410-9ed3-97b8803252fd
pull/1/head
Geert Janssens 16 years ago
parent 761fe11644
commit 113db6f5f5

@ -139,8 +139,11 @@ However, I did not find valgrind to be useful. It reported a bunch of
guile bugs, some g_hash_table bugs, and then the program exited prematurely
for no apparent reason. :-(
For the moment, use the suppressions in src/valgrind-gnucash.supp
For the moment, gnucash-valgrind uses the suppressions in
src/debug/valgrind/valgrind-*.supp
For valgrind-gnucash.supp, this comment was made (but is perhaps outdated
by now ?):
This file needs to be cleaned up in two ways:
1/ There are a bunch of duplicate suppressions in the file.

@ -1549,7 +1549,9 @@ AC_CONFIG_FILES(po/Makefile.in
src/bin/test/Makefile
src/core-utils/Makefile
src/calculation/Makefile
src/calculation/test/Makefile
src/calculation/test/Makefile
src/debug/Makefile
src/debug/valgrind/Makefile
src/doc/Makefile
src/doc/design/Makefile
src/doc/xml/Makefile

@ -1,5 +1,6 @@
NONGUI_SUBDIRS = \
libqof \
debug \
doc \
pixmaps \
core-utils \
@ -51,6 +52,5 @@ EXTRA_DIST = \
base-typemaps.i \
README.modules \
gnc-test-env \
valgrind-gnucash.supp \
guile-mappings.h \
glib-compat.h

@ -57,7 +57,7 @@ gnucash-valgrind: gnucash-valgrind.in ${top_builddir}/config.status Makefile
rm -f $@.tmp
sed < $< > $@.tmp \
-e 's#@-BIN_DIR-@#${bindir}#g' \
-e "s#@-TOP_SRC_DIR-@#`pwd`/${top_srcdir}#g" \
-e "s#@-TOP_SRC_DIR-@#${abs_top_srcdir}#g" \
-e "s#@-GNUCASH_SETUP_ENV_INSTALL_NAME-@#${GNUCASH_SETUP_ENV_INSTALL_NAME}#g" \
-e "s#@-GNUCASH_BIN_INSTALL_NAME-@#${GNUCASH_BIN_INSTALL_NAME}#g"
mv $@.tmp $@

@ -10,13 +10,13 @@ TOP_SRC_DIR="@-TOP_SRC_DIR-@"
export G_SLICE=always-malloc
export G_DEBUG=gc-friendly
exec valgrind -v \
--suppressions=${TOP_SRC_DIR}/src/valgrind-gnucash.supp \
--suppressions=${TOP_SRC_DIR}/src/valgrind-glib.supp \
--suppressions=${TOP_SRC_DIR}/src/valgrind-libfontconfig.supp \
--suppressions=${TOP_SRC_DIR}/src/valgrind-libgda.supp \
--suppressions=${TOP_SRC_DIR}/src/valgrind-libguile.supp \
--num-callers=25 \
--suppressions=${TOP_SRC_DIR}/src/debug/valgrind/valgrind-gnucash.supp \
--suppressions=${TOP_SRC_DIR}/src/debug/valgrind/valgrind-glib.supp \
--suppressions=${TOP_SRC_DIR}/src/debug/valgrind/valgrind-libfontconfig.supp \
--suppressions=${TOP_SRC_DIR}/src/debug/valgrind/valgrind-libgda.supp \
--suppressions=${TOP_SRC_DIR}/src/debug/valgrind/valgrind-libguile.supp \
--num-callers=25 \
--error-limit=no \
--tool=memcheck \
--leak-check=full \
--leak-check=full \
@-GNUCASH_BIN_INSTALL_NAME-@ "$@"

@ -0,0 +1,3 @@
SUBDIRS = \
valgrind

@ -0,0 +1,9 @@
EXTRA_DIST = \
valgrind-gdk.supp \
valgrind-glib.supp \
valgrind-gnucash.supp \
valgrind-libfontconfig.supp \
valgrind-libgda.supp \
valgrind-libguile.supp \
valgrind-x11.supp

@ -7,6 +7,7 @@ EXTRA_DIST = \
README \
backup.txt \
budget.txt \
callgrind.txt \
constderv.html \
finderv.html \
finutil.html \
@ -26,7 +27,6 @@ EXTRA_DIST = \
netlogin.txt \
guid.txt \
qif.txt \
valgrind.txt \
generic-druid-framework.txt \
user-prefs-howto.txt

Loading…
Cancel
Save