* 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:
parent
c9da3d68ba
commit
f23fa4b011
@ -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>
|
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.
|
* test/io/wait/test_io_wait.rb: use Socket.pair instaed of pipe.
|
||||||
|
@ -9,7 +9,11 @@ end
|
|||||||
class TestIOWait < Test::Unit::TestCase
|
class TestIOWait < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
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
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
|
Loading…
x
Reference in New Issue
Block a user