From: Dale R. Worley Date: Sat, 3 Aug 2013 00:27:23 +0000 (-0400) Subject: t0070: test that git_mkstemps correctly checks return value of open() X-Git-Tag: v1.8.5-rc0~190^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=253b27f1c9a24fd86884a0e202a64f11e162c125;p=git t0070: test that git_mkstemps correctly checks return value of open() Signed-off-by: Dale R. Worley Signed-off-by: Junio C Hamano --- diff --git a/t/t0070-fundamental.sh b/t/t0070-fundamental.sh index da2c504e53..ff3776fcb8 100755 --- a/t/t0070-fundamental.sh +++ b/t/t0070-fundamental.sh @@ -25,6 +25,10 @@ test_expect_success POSIXPERM 'mktemp to unwritable directory prints filename' ' grep "cannotwrite/test" err ' +test_expect_success 'git_mkstemps_mode does not fail if fd 0 is not open' ' + git commit --allow-empty -m message <&- +' + test_expect_success 'check for a bug in the regex routines' ' # if this test fails, re-build git with NO_REGEX=1 test-regex