Skip to content

Commit e8f12e0

Browse files
committed
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>
1 parent 67ad421 commit e8f12e0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

t/t1400-update-ref.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,6 +1610,7 @@ test_expect_success 'transaction cannot restart ongoing transaction' '
16101610
'
16111611

16121612
test_expect_success PIPE 'transaction flushes status updates' '
1613+
test_when_finished "rm -f in out" &&
16131614
mkfifo in out &&
16141615
(git update-ref --stdin <in >out &) &&
16151616

0 commit comments

Comments
 (0)