diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-11-29 13:47:45 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-11-29 10:23:50 -0800 |
commit | b8de3d6e0221ca1d6c65bbce3cacc6a2206f89f5 (patch) | |
tree | 033e78b7355fa52cf1195bc54f2472ee2ffcfc98 /t/t4037-diff-r-t-dirs.sh | |
parent | Git 2.34.1 (diff) | |
download | tgif-b8de3d6e0221ca1d6c65bbce3cacc6a2206f89f5.tar.xz |
test-lib.sh: set GIT_TRACE2_EVENT_NESTING
The GIT_TRACE2_EVENT feed has a limited nesting depth to avoid
overloading the feed when recursing into deep paths while adding more
nested regions.
Some tests use the GIT_TRACE2_EVENT feed to look for internal events,
ensuring that intended behavior is happening.
One such example is in t4216-log-bloom.sh which looks for a statistic
given as a trace2_data_intmax() call. This test started failing under
'-x' with 2ca245f8be5 (csum-file.h: increase hashfile buffer size,
2021-05-18) because the change in stderr triggered the progress API to
create an extra trace2 region, ejecting the statistic.
This change increases the value of GIT_TRACE2_EVENT_NESTING across the
entire test suite to avoid errors like this. Future changes will remove
custom assignments of GIT_TRACE2_EVENT_NESTING from some test scripts
that were aware of this limitation.
Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4037-diff-r-t-dirs.sh')
0 files changed, 0 insertions, 0 deletions