diff options
Diffstat (limited to 'test/io')
-rw-r--r-- | test/io/wait/test_io_wait.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb index 66d01907a6..876fbb87de 100644 --- a/test/io/wait/test_io_wait.rb +++ b/test/io/wait/test_io_wait.rb @@ -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 |