diff options
author | Bruno Haible <bruno@clisp.org> | 2009-04-07 00:09:59 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-04-08 13:02:33 +0200 |
commit | 3f1f7a4ed4803548df9656e1c91f980e1bf68724 (patch) | |
tree | 119383d984aa4b924fde2eec98d50d15f58c9587 /tests | |
parent | 38ed6193c913a56183c37dc0dd0f2b9b6a8937ae (diff) | |
download | libunistring-3f1f7a4ed4803548df9656e1c91f980e1bf68724.tar.gz |
Support for running valgrind.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index f9dfa0a..7fbaa85 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -23,3 +23,14 @@ AUTOMAKE_OPTIONS += subdir-objects # The test suite uses the 'localcharset' module. TESTS_ENVIRONMENT += @LOCALCHARSET_TESTS_ENVIRONMENT@ + + +# For debugging memory leaks and memory allocation bugs. +# You should build with --disable-shared when using valgrind. +CHECKER = +#CHECKER = valgrind --tool=memcheck --suppressions=$(srcdir)/../lib/malloca.valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes +#CHECKER = valgrind --tool=massif --format=html --depth=10 --alloc-fn=xmalloc --alloc-fn=xrealloc --stacks=no +CHECKER_END_OF_COMMENTS = + +# This must be the last thing that gets added to TESTS_ENVIRONMENT. +TESTS_ENVIRONMENT += $(SHELL) $(top_srcdir)/build-aux/run-test '$(CHECKER)' |