t0070: test that git_mkstemps correctly checks return value of open()
Signed-off-by: Dale R. Worley <worley@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Dale R. Worley committed
Aug 2, 2013 at 20:27 UTC
253b27f1c9a24fd86884a0e202a64f11e162c125
1 file changed
+4
t/t0070-fundamental.sh
+4
@@ -25,6 +25,10 @@ test_expect_success POSIXPERM 'mktemp to unwritable directory prints filename' '
25
grep "cannotwrite/test" err
26
'
27
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
+
32
test_expect_success 'check for a bug in the regex routines' '
33
# if this test fails, re-build git with NO_REGEX=1
34
test-regex