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:
akr 2009-02-11 04:17:57 +00:00
parent c9c3437b20
commit a8de15e0b5
6 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ begin
rescue LoadError rescue LoadError
end end
class TestBasicSocket < Test::Unit::TestCase class TestSocket_BasicSocket < Test::Unit::TestCase
def inet_stream def inet_stream
sock = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0) sock = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
yield sock yield sock

View File

@ -7,7 +7,7 @@ require "test/unit"
require "tempfile" require "tempfile"
require "timeout" require "timeout"
class TestNonblockSocket < Test::Unit::TestCase class TestSocketNonblock < Test::Unit::TestCase
def test_accept_nonblock def test_accept_nonblock
serv = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0) serv = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
serv.bind(Socket.sockaddr_in(0, "127.0.0.1")) serv.bind(Socket.sockaddr_in(0, "127.0.0.1"))

View File

@ -1,7 +1,7 @@
require 'test/unit' require 'test/unit'
require 'socket' require 'socket'
class TestSockOpt < Test::Unit::TestCase class TestSocketOption < Test::Unit::TestCase
def test_bool def test_bool
opt = Socket::Option.bool(:INET, :SOCKET, :KEEPALIVE, true) opt = Socket::Option.bool(:INET, :SOCKET, :KEEPALIVE, true)
assert_equal(1, opt.int) assert_equal(1, opt.int)

View File

@ -5,7 +5,7 @@ rescue LoadError
end end
class TestTCPSocket < Test::Unit::TestCase class TestSocket_TCPSocket < Test::Unit::TestCase
def test_recvfrom def test_recvfrom
svr = TCPServer.new("localhost", 0) svr = TCPServer.new("localhost", 0)
th = Thread.new { th = Thread.new {

View File

@ -5,7 +5,7 @@ rescue LoadError
end end
class TestUDPSocket < Test::Unit::TestCase class TestSocket_UDPSocket < Test::Unit::TestCase
def test_open def test_open
assert_nothing_raised { UDPSocket.open {} } assert_nothing_raised { UDPSocket.open {} }
assert_nothing_raised { UDPSocket.open(Socket::AF_INET) {} } assert_nothing_raised { UDPSocket.open(Socket::AF_INET) {} }

View File

@ -7,7 +7,7 @@ require "test/unit"
require "tempfile" require "tempfile"
require "tmpdir" require "tmpdir"
class TestUNIXSocket < Test::Unit::TestCase class TestSocket_UNIXSocket < Test::Unit::TestCase
def test_fd_passing def test_fd_passing
r1, w = IO.pipe r1, w = IO.pipe
s1, s2 = UNIXSocket.pair s1, s2 = UNIXSocket.pair