Merge branch 'jk/maint-do-not-feed-stdin-to-tests'

* jk/maint-do-not-feed-stdin-to-tests:
  test-lib: redirect stdin of tests
This commit is contained in:
Junio C Hamano 2011-12-22 11:27:25 -08:00
commit 52b9d2cf7f

View File

@ -192,6 +192,7 @@ then
fi fi
exec 5>&1 exec 5>&1
exec 6<&0
if test "$verbose" = "t" if test "$verbose" = "t"
then then
exec 4>&2 3>&1 exec 4>&2 3>&1
@ -475,7 +476,7 @@ test_debug () {
test_eval_ () { test_eval_ () {
# This is a separate function because some tests use # This is a separate function because some tests use
# "return" to end a test_expect_success block early. # "return" to end a test_expect_success block early.
eval >&3 2>&4 "$*" eval </dev/null >&3 2>&4 "$*"
} }
test_run_ () { test_run_ () {