In order for --valgrind to be useful, we drop noisy additional output of
all of the commands being executed in verbose mode. This makes --verbose
alone quite useless, so we don't document it any more.
Also, add a zlib valgrind suppression that was showing up frequently in the
test suite.
The following command-line options are available when running tests:
The following command-line options are available when running tests:
---verbose::
- This makes the test more verbose. Specifically, the
- command being run and their output if any are also
- output.
-
--debug::
This may help the person who is developing a new test.
It causes the command defined with test_debug to run.
--debug::
This may help the person who is developing a new test.
It causes the command defined with test_debug to run.
expected="$2"
if ! test_skip "$@"
then
expected="$2"
if ! test_skip "$@"
then
- say >&3 "expecting success: diff $output $expected"
if [ "$output" = "$expected" ]; then
test_ok_ "$test_subtest_name"
else
if [ "$output" = "$expected" ]; then
test_ok_ "$test_subtest_name"
else
echo "$output" > $testname.output
test_failure_ "$test_subtest_name" "$(diff -u $testname.expected $testname.output)"
fi
echo "$output" > $testname.output
test_failure_ "$test_subtest_name" "$(diff -u $testname.expected $testname.output)"
fi
error "bug in the test script: not 2 or 3 parameters to test-expect-failure"
if ! test_skip "$@"
then
error "bug in the test script: not 2 or 3 parameters to test-expect-failure"
if ! test_skip "$@"
then
- say >&3 "checking known breakage: $2"
test_run_ "$2"
if [ "$?" = 0 -a "$eval_ret" = 0 ]
then
test_run_ "$2"
if [ "$?" = 0 -a "$eval_ret" = 0 ]
then
test_known_broken_failure_ "$1"
fi
fi
test_known_broken_failure_ "$1"
fi
fi
}
test_expect_success () {
}
test_expect_success () {
error "bug in the test script: not 2 or 3 parameters to test-expect-success"
if ! test_skip "$@"
then
error "bug in the test script: not 2 or 3 parameters to test-expect-success"
if ! test_skip "$@"
then
- say >&3 "expecting success: $2"
test_run_ "$2"
if [ "$?" = 0 -a "$eval_ret" = 0 ]
then
test_run_ "$2"
if [ "$?" = 0 -a "$eval_ret" = 0 ]
then
error "bug in the test script: not 3 or 4 parameters to test-expect-code"
if ! test_skip "$@"
then
error "bug in the test script: not 3 or 4 parameters to test-expect-code"
if ! test_skip "$@"
then
- say >&3 "expecting exit code $1: $3"
test_run_ "$3"
if [ "$?" = 0 -a "$eval_ret" = "$1" ]
then
test_run_ "$3"
if [ "$?" = 0 -a "$eval_ret" = "$1" ]
then
}
# test_external runs external test scripts that provide continuous
}
# test_external runs external test scripts that provide continuous
[ -f "$stderr" ] || error "Internal error: $stderr disappeared."
descr="no stderr: $1"
shift
[ -f "$stderr" ] || error "Internal error: $stderr disappeared."
descr="no stderr: $1"
shift
- say >&3 "expecting no stderr from previous command"
if [ ! -s "$stderr" ]; then
rm "$stderr"
test_ok_ "$descr"
if [ ! -s "$stderr" ]; then
rm "$stderr"
test_ok_ "$descr"
--- /dev/null
+{
+ zlib inflation uses uninitialize values
+ Memcheck:Cond
+ fun:inflateReset2
+ fun:inflateInit2_
+}
\ No newline at end of file
exec valgrind -q --error-exitcode=126 \
--leak-check=no \
exec valgrind -q --error-exitcode=126 \
--leak-check=no \
- --suppressions="$GIT_VALGRIND/default.supp" \
+ --suppressions="$GIT_VALGRIND/suppressions" \
--gen-suppressions=all \
$TRACK_ORIGINS \
--log-fd=4 \
--gen-suppressions=all \
$TRACK_ORIGINS \
--log-fd=4 \