Skip to content

Commit

Permalink
Merge branch 'jk/maint-do-not-feed-stdin-to-tests'
Browse files Browse the repository at this point in the history
* jk/maint-do-not-feed-stdin-to-tests:
  test-lib: redirect stdin of tests
  • Loading branch information
Junio C Hamano committed Dec 22, 2011
2 parents c53d1e4 + 781f76b commit 52b9d2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ then
fi

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

test_run_ () {
Expand Down

0 comments on commit 52b9d2c

Please sign in to comment.