3 test_expect_success 'set up terminal for tests' '
5 test_have_prereq PERL &&
6 "$PERL_PATH" "$TEST_DIRECTORY"/test-terminal.perl \
7 sh -c "test -t 1 && test -t 2"
11 if ! test_declared_prereq TTY
13 echo >&4 "test_terminal: need to declare TTY prerequisite"
16 "$PERL_PATH" "$TEST_DIRECTORY"/test-terminal.perl "$@"