summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-03-16 16:47:26 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-03-16 16:47:26 -0700
commitc9b7cc04739bd744f7f28742de9ac65a61adebc2 (patch)
tree58739d1c83b14fe4e1f56dc2e1884e96e28e7e1c /t
parentMerge branch 'jk/fail-null-clone' into maint (diff)
parenttests: skip terminal output tests on OS X (diff)
downloadtgif-c9b7cc04739bd744f7f28742de9ac65a61adebc2.tar.xz
Merge branch 'jn/test-terminal-punt-on-osx-breakage' into maint
* jn/test-terminal-punt-on-osx-breakage: tests: skip terminal output tests on OS X
Diffstat (limited to 't')
-rw-r--r--t/lib-terminal.sh22
1 files changed, 19 insertions, 3 deletions
diff --git a/t/lib-terminal.sh b/t/lib-terminal.sh
index c383b57ed9..58d911d21b 100644
--- a/t/lib-terminal.sh
+++ b/t/lib-terminal.sh
@@ -1,8 +1,24 @@
#!/bin/sh
-test_expect_success 'set up terminal for tests' '
- if
- test_have_prereq PERL &&
+test_expect_success PERL 'set up terminal for tests' '
+ # Reading from the pty master seems to get stuck _sometimes_
+ # on Mac OS X 10.5.0, using Perl 5.10.0 or 5.8.9.
+ #
+ # Reproduction recipe: run
+ #
+ # i=0
+ # while ./test-terminal.perl echo hi $i
+ # do
+ # : $((i = $i + 1))
+ # done
+ #
+ # After 2000 iterations or so it hangs.
+ # https://rt.cpan.org/Ticket/Display.html?id=65692
+ #
+ if test "$(uname -s)" = Darwin
+ then
+ :
+ elif
"$PERL_PATH" "$TEST_DIRECTORY"/test-terminal.perl \
sh -c "test -t 1 && test -t 2"
then