зеркало из https://github.com/github/ruby.git
* test/io/console/test_io_console.rb (TestIO_Console#test_sync):
fix for daemon process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ea11cf5d7f
Коммит
bc46dfd281
|
@ -1,3 +1,8 @@
|
|||
Thu Jun 16 09:08:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/io/console/test_io_console.rb (TestIO_Console#test_sync):
|
||||
fix for daemon process.
|
||||
|
||||
Thu Jun 16 07:58:01 2011 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* test/testunit/test_parallel.rb(test_ignore_tzero): Test for r32109.
|
||||
|
|
|
@ -148,9 +148,17 @@ class TestIO_Console < Test::Unit::TestCase
|
|||
}
|
||||
end
|
||||
|
||||
def test_sync
|
||||
skip "Can't get console (because of there is no tty?)" unless IO.console
|
||||
assert(helper {IO.console.sync}, "console should be unbuffered")
|
||||
if IO.console
|
||||
def test_sync
|
||||
assert(IO.console.sync, "console should be unbuffered")
|
||||
end
|
||||
else
|
||||
def test_sync
|
||||
r, w, pid = PTY.spawn(EnvUtil.rubybin, "-rio/console", "-e", "p IO.console.class")
|
||||
con = r.gets.chomp
|
||||
Process.wait(pid)
|
||||
assert_match("File", con)
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Загрузка…
Ссылка в новой задаче