summaryrefslogtreecommitdiff
path: root/Documentation/technical/hash-function-transition.txt
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2021-11-21 18:10:56 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-11-22 15:43:44 -0800
commit5263e22cba8dce3a579bec41ac576f74bf4258df (patch)
tree0aeffe0e06480804e552e008ee4be840ab89eb4b /Documentation/technical/hash-function-transition.txt
parentt7006: clean up SIGPIPE handling in trace2 tests (diff)
downloadtgif-5263e22cba8dce3a579bec41ac576f74bf4258df.tar.xz
t7006: simplify exit-code checks for sigpipe tests
Some tests in t7006 check for a SIGPIPE result by recording $? and comparing it with test_match_signal. Before the previous commit, the command was on the left-hand side of a pipe, and so we had to do some subshell trickery to extract it. But now that this is no longer the case, we can do things much more simply: just run the command directly, using braces to avoid wrecking the &&-chain, and then record $?. We could almost use test_expect_code here, but it doesn't know about test_match_signal. Likewise, for tests which expect success (i.e., not SIGPIPE), we can just put them in the &&-chain as usual. That even lets us get rid of the !MINGW check, since the expectation is the same on both sides. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/hash-function-transition.txt')
0 files changed, 0 insertions, 0 deletions