Skip to content

Commit 253b27f

Browse files
daleworleygitster
authored andcommitted
t0070: test that git_mkstemps correctly checks return value of open()
Signed-off-by: Dale R. Worley <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a77f106 commit 253b27f

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 'mktemp to unwritable directory prints filename' '
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)