1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/io/wait/test_io_wait.rb: Linux socketpair(2) only support

AF_UNIX, but windows socketpair doesn't support it. we can't
  avoid platform check. sigh!



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-05-07 20:21:38 +00:00
parent c9da3d68ba
commit f23fa4b011
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Sun May 8 05:19:37 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/io/wait/test_io_wait.rb: Linux socketpair(2) only support
AF_UNIX, but windows socketpair doesn't support it. we can't
avoid platform check. sigh!
Sun May 8 00:13:05 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/io/wait/test_io_wait.rb: use Socket.pair instaed of pipe.

View file

@ -9,7 +9,11 @@ end
class TestIOWait < Test::Unit::TestCase
def setup
@r, @w = Socket.pair(Socket::AF_INET, Socket::SOCK_STREAM, 0)
if /mswin/ =~ RUBY_PLATFORM
@r, @w = Socket.pair(Socket::AF_INET, Socket::SOCK_STREAM, 0)
else
@r, @w = IO.pipe
end
end
def teardown