mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/io/console/test_io_console.rb: add a memo for the mysterious hack
This commit is contained in:
parent
264d5aff5a
commit
0bca34ddaa
1 changed files with 11 additions and 1 deletions
|
@ -11,7 +11,17 @@ class TestIO_Console < Test::Unit::TestCase
|
|||
PATHS.uniq!
|
||||
|
||||
# FreeBSD seems to hang on TTOU when running parallel tests
|
||||
# tested on FreeBSD 11.x
|
||||
# tested on FreeBSD 11.x.
|
||||
#
|
||||
# Solaris gets stuck too, even in non-parallel mode.
|
||||
# It occurs only in chkbuild. It does not occur when running
|
||||
# `make test-all` in SSH terminal.
|
||||
#
|
||||
# I suspect that it occurs only when having no TTY.
|
||||
# (Parallel mode runs tests in child processes, so I guess
|
||||
# they has no TTY.)
|
||||
# But it does not occur in `make test-all > /dev/null`, so
|
||||
# there should be an additional factor, I guess.
|
||||
def set_winsize_setup
|
||||
@old_ttou = trap(:TTOU, 'IGNORE') if RUBY_PLATFORM =~ /freebsd|solaris/i
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue