mirror of
https://github.com/mirror/wget.git
synced 2024-12-26 12:50:44 +08:00
cf788d60e4
This prevents needing a special case in the fuzz tests to detect valgrind usage and a new exec. Instead, we simply detect the environment in a shell script and start the test with valgrind in the first place. * fuzz/test-runner.sh: New script for running the fuzz tests * fuzz/main.c (main): Remove code for re-running under valgrind * fuzz/Makefile.am: Set the LOG_COMPILER to test-runner.sh and remember to add it to the list of extra files for packaging
10 lines
190 B
Bash
Executable File
10 lines
190 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
WRAPPER=""
|
|
|
|
if [ -n "$VALGRIND_TESTS" ]; then
|
|
WRAPPER="valgrind --error-exitcode=301 --leak-check=yes --show-reachable=yes --track-origins=yes"
|
|
fi
|
|
|
|
exec $WRAPPER "$@"
|