diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-02-02 02:59:58 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-01 21:15:58 -0800 |
commit | c24b7f67364fc89575926c7c79118df55b6103ef (patch) | |
tree | 2ceec0de92e3aea52b7e344f8cf76b4963f95d61 /t/t2025-checkout-no-overlay.sh | |
parent | pager: refactor wait_for_pager() function (diff) | |
download | tgif-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/t2025-checkout-no-overlay.sh')
0 files changed, 0 insertions, 0 deletions