Skip to content

Commit de5412b

Browse files
committed
Merge branch 'tr/fd-gotcha-fixes'
Finishing touches to an earlier fix already in 'master'. * tr/fd-gotcha-fixes: t0070: test that git_mkstemps correctly checks return value of open()
2 parents 04fbba0 + 253b27f commit de5412b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t0070-fundamental.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ test_expect_success POSIXPERM,SANITY 'mktemp to unwritable directory prints file
2525
grep "cannotwrite/test" err
2626
'
2727

28+
test_expect_success 'git_mkstemps_mode does not fail if fd 0 is not open' '
29+
git commit --allow-empty -m message <&-
30+
'
31+
2832
test_expect_success 'check for a bug in the regex routines' '
2933
# if this test fails, re-build git with NO_REGEX=1
3034
test-regex

0 commit comments

Comments
 (0)