mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rename tests classes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c9c3437b20
commit
a8de15e0b5
6 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@ begin
|
|||
rescue LoadError
|
||||
end
|
||||
|
||||
class TestBasicSocket < Test::Unit::TestCase
|
||||
class TestSocket_BasicSocket < Test::Unit::TestCase
|
||||
def inet_stream
|
||||
sock = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
|
||||
yield sock
|
||||
|
|
|
@ -7,7 +7,7 @@ require "test/unit"
|
|||
require "tempfile"
|
||||
require "timeout"
|
||||
|
||||
class TestNonblockSocket < Test::Unit::TestCase
|
||||
class TestSocketNonblock < Test::Unit::TestCase
|
||||
def test_accept_nonblock
|
||||
serv = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
|
||||
serv.bind(Socket.sockaddr_in(0, "127.0.0.1"))
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'test/unit'
|
||||
require 'socket'
|
||||
|
||||
class TestSockOpt < Test::Unit::TestCase
|
||||
class TestSocketOption < Test::Unit::TestCase
|
||||
def test_bool
|
||||
opt = Socket::Option.bool(:INET, :SOCKET, :KEEPALIVE, true)
|
||||
assert_equal(1, opt.int)
|
||||
|
|
|
@ -5,7 +5,7 @@ rescue LoadError
|
|||
end
|
||||
|
||||
|
||||
class TestTCPSocket < Test::Unit::TestCase
|
||||
class TestSocket_TCPSocket < Test::Unit::TestCase
|
||||
def test_recvfrom
|
||||
svr = TCPServer.new("localhost", 0)
|
||||
th = Thread.new {
|
||||
|
|
|
@ -5,7 +5,7 @@ rescue LoadError
|
|||
end
|
||||
|
||||
|
||||
class TestUDPSocket < Test::Unit::TestCase
|
||||
class TestSocket_UDPSocket < Test::Unit::TestCase
|
||||
def test_open
|
||||
assert_nothing_raised { UDPSocket.open {} }
|
||||
assert_nothing_raised { UDPSocket.open(Socket::AF_INET) {} }
|
||||
|
|
|
@ -7,7 +7,7 @@ require "test/unit"
|
|||
require "tempfile"
|
||||
require "tmpdir"
|
||||
|
||||
class TestUNIXSocket < Test::Unit::TestCase
|
||||
class TestSocket_UNIXSocket < Test::Unit::TestCase
|
||||
def test_fd_passing
|
||||
r1, w = IO.pipe
|
||||
s1, s2 = UNIXSocket.pair
|
||||
|
|
Loading…
Add table
Reference in a new issue