Skip to content

Commit 52b9d2c

Browse files
committed
Merge branch 'jk/maint-do-not-feed-stdin-to-tests'
* jk/maint-do-not-feed-stdin-to-tests: test-lib: redirect stdin of tests
2 parents c53d1e4 + 781f76b commit 52b9d2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/test-lib.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ then
192192
fi
193193

194194
exec 5>&1
195+
exec 6<&0
195196
if test "$verbose" = "t"
196197
then
197198
exec 4>&2 3>&1
@@ -475,7 +476,7 @@ test_debug () {
475476
test_eval_ () {
476477
# This is a separate function because some tests use
477478
# "return" to end a test_expect_success block early.
478-
eval >&3 2>&4 "$*"
479+
eval </dev/null >&3 2>&4 "$*"
479480
}
480481

481482
test_run_ () {

0 commit comments

Comments
 (0)