@@ -612,11 +612,11 @@ test_expect_success TTY 'print again the hunk (PAGER)' '
test_cmp expect actual.trimmed
'
-test_expect_success TTY 'P does not break if pager ends unexpectedly' '
+test_expect_success TTY 'P handles SIGPIPE when writing to pager' '
test_when_finished "rm -f huge_file; git reset" &&
printf "\n%2500000s" Y >huge_file &&
git add -N huge_file &&
- test_write_lines P q | GIT_PAGER="head -n 1" test_terminal git add -p >actual
+ test_write_lines P q | GIT_PAGER="head -n 1" test_terminal git add -p
'
test_expect_success 'split hunk "add -p (edit)"' '