@leroysheep / BookAlchemy / commits / e8f12e0e95

t1400: have fifo test clean after itself

One test in this script creates a pair of FIFOs, "in" and "out", that are named so generically that later tests may be tempted to use them. By the time those later tests run a command with its output redirected to the file (e.g., "git foobar >out"), however, nobody is reading from the lingering FIFO, and the test gets blocked forever. Clean them up when the test finishes. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jun 10, 2026 at 14:39 UTC e8f12e0e950a3735ccc2ed0bed2552ec1dcdd078
1 file changed +1
t/t1400-update-ref.sh
+1
index db7f5444da..477af544bc 100755 --- a/t/t1400-update-ref.sh +++ b/t/t1400-update-ref.sh @@ -1610,6 +1610,7 @@ test_expect_success 'transaction cannot restart ongoing transaction' ' ' test_expect_success PIPE 'transaction flushes status updates' ' + test_when_finished "rm -f in out" && mkfifo in out && (git update-ref --stdin <in >out &) &&