summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale R. Worley <worley@alum.mit.edu>2013-08-02 20:27:23 -0400
committerJunio C Hamano <gitster@pobox.com>2013-08-06 11:12:46 -0700
commit253b27f1c9a24fd86884a0e202a64f11e162c125 (patch)
tree33b12fa1e39a640b501cf5db22233eb8b4ec7e1f
parenta77f106c7837faf6a712ea3ac720f5c4fa2feb07 (diff)
downloadgit-tr/fd-gotcha-fixes.tar.gz
t0070: test that git_mkstemps correctly checks return value of open()tr/fd-gotcha-fixes
Signed-off-by: Dale R. Worley <worley@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t0070-fundamental.sh4
1 files changed, 4 insertions, 0 deletions
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