]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Fix suggested valgrind invocation.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Jul 2025 07:17:58 +0000 (09:17 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 7 Jul 2025 07:17:58 +0000 (09:17 +0200)
A while ago, valgrind exited with exit code != 0 when it encountered an error.
This is apparently not the case any more.

* gettext-tools/tests/Makefile.am (CHECKER): Add --error-exitcode option.

gettext-tools/tests/Makefile.am

index c7146594b730dd6e8394ce7cda06dbfb851d25af..f53977aa68c5399330907610c1eaab4838ff2d0d 100644 (file)
@@ -303,6 +303,7 @@ XGETTEXT = ../src/xgettext
 # For debugging memory leaks and memory allocation bugs.
 # You should build with --disable-shared when using valgrind.
 CHECKER =
+#CHECKER = valgrind --tool=memcheck --error-exitcode=9 --suppressions=$(abs_srcdir)/../gnulib-lib/libunistring.valgrind --num-callers=20
 #CHECKER = valgrind --tool=memcheck --suppressions=$(abs_srcdir)/../gnulib-lib/libunistring.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