diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-02-03 22:40:14 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-03 15:39:55 -0800 |
commit | bbfb1c243d5da5dc0427346315d915ba02e8d0dd (patch) | |
tree | e33bc29540cec80d05dc5f9d0b30c270fda05543 /t/t7061-wtstatus-ignore.sh | |
parent | progress.c tests: make start/stop commands on stdin (diff) | |
download | tgif-bbfb1c243d5da5dc0427346315d915ba02e8d0dd.tar.xz |
progress.c tests: test some invalid usage
Test what happens when we "stop" without a "start", omit the "stop"
after a "start", or start two concurrent progress bars. This
extends the trace2 tests added in 98a13647408 (trace2: log progress
time and throughput, 2020-05-12).
These tests are not merely testing the helper, but invalid API usage
that can happen if the progress.c API is misused.
The "without stop" test will leak under SANITIZE=leak, since this
buggy use of the API will leak memory. But let's not skip it entirely,
or use the "!SANITIZE_LEAK" prerequisite check as we'd do with tests
that we're skipping due to leaks we haven't fixed yet. Instead
annotate the specific command that should skip leak checking with
custom $LSAN_OPTIONS[1].
1. https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7061-wtstatus-ignore.sh')
0 files changed, 0 insertions, 0 deletions