aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/valgrind.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-06 19:23:16 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-07 20:44:39 +0200
commita9da6ac95d5bc11689b87ba689aeffbf22c45418 (patch)
treeec4edf6f15d615feab84da37f68c4ae626cf896e /src/valgrind.sh
parenttest: mark global fixtures as such (diff)
downloadcimple-a9da6ac95d5bc11689b87ba689aeffbf22c45418.tar.gz
cimple-a9da6ac95d5bc11689b87ba689aeffbf22c45418.zip
add tests to run binaries under Valgrind
This was quite a bit of refactoring in test/; everything should be more maintainable and robust in theory. Also, valgrind.sh was fixed to use exec (so that signals are passed to the underlying process); Valgrind command line options have also been tweaked. ./ci.sh fails now, but that should be fixable.
Diffstat (limited to 'src/valgrind.sh')
-rwxr-xr-xsrc/valgrind.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/valgrind.sh b/src/valgrind.sh
index 7223092..088c393 100755
--- a/src/valgrind.sh
+++ b/src/valgrind.sh
@@ -8,4 +8,9 @@ if ! command -v valgrind &> /dev/null; then
exit 1
fi
-valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose "$@"
+exec valgrind \
+ --leak-check=full \
+ --show-leak-kinds=all \
+ --track-origins=yes \
+ --trace-children=yes \
+ -- "$@"