summaryrefslogtreecommitdiff
path: root/t/t0065-strcmp-offset.sh
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-02-02 02:59:58 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-02-01 21:15:58 -0800
commitc24b7f67364fc89575926c7c79118df55b6103ef (patch)
tree2ceec0de92e3aea52b7e344f8cf76b4963f95d61 /t/t0065-strcmp-offset.sh
parentpager: refactor wait_for_pager() function (diff)
downloadtgif-c24b7f67364fc89575926c7c79118df55b6103ef.tar.xz
pager: test for exit code with and without SIGPIPE
Add tests for how git behaves when the pager itself exits with non-zero, as well as for us exiting with 141 when we're killed with SIGPIPE due to the pager not consuming its output. There is some recent discussion[1] about these semantics, but aside from what we want to do in the future, we should have a test for the current behavior. This test construct is stolen from 7559a1be8a0 (unblock and unignore SIGPIPE, 2014-09-18). The reason not to make the test itself depend on the MINGW prerequisite is to make a subsequent commit easier to read. 1. https://lore.kernel.org/git/87o8h4omqa.fsf@evledraar.gmail.com/ Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0065-strcmp-offset.sh')
0 files changed, 0 insertions, 0 deletions