Skip to content

Commit adb0b9c

Browse files
olszomalmtrojnar
authored andcommitted
Tests: use libtool wrapper to improve valgrind integration
Use libtool --mode=execute in the Valgrind wrapper to avoid analyzing the libtool-generated shell script. This ensures that only the actual test binaries are traced by Valgrind, reducing noise from unrelated memory allocations made by the shell and improving the accuracy of memory leak reports.
1 parent ab97561 commit adb0b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/common.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2121

2222
# Uncomment the following line to enable debugging with Valgrind
23-
# WRAPPER="valgrind -s --track-origins=yes --leak-check=full --show-leak-kinds=all --tool=memcheck --show-reachable=yes --keep-debuginfo=yes"
23+
# WRAPPER="libtool --mode=execute valgrind -s --track-origins=yes --leak-check=full --show-leak-kinds=all --tool=memcheck --show-reachable=yes --keep-debuginfo=yes"
2424

2525
echo "Current directory: $(pwd)"
2626
echo "Source directory: ${srcdir}"

0 commit comments

Comments
 (0)