We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8209b7f + 339e563 commit c9b7cc0Copy full SHA for c9b7cc0
t/lib-terminal.sh
@@ -1,8 +1,24 @@
1
#!/bin/sh
2
3
-test_expect_success 'set up terminal for tests' '
4
- if
5
- 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.
6
+ #
7
+ # Reproduction recipe: run
8
9
+ # i=0
10
+ # while ./test-terminal.perl echo hi $i
11
+ # do
12
+ # : $((i = $i + 1))
13
+ # done
14
15
+ # After 2000 iterations or so it hangs.
16
+ # https://rt.cpan.org/Ticket/Display.html?id=65692
17
18
+ if test "$(uname -s)" = Darwin
19
+ then
20
+ :
21
+ elif
22
"$PERL_PATH" "$TEST_DIRECTORY"/test-terminal.perl \
23
sh -c "test -t 1 && test -t 2"
24
then
0 commit comments