ruby-changes:52069
From: naruse <ko1@a...>
Date: Sat, 11 Aug 2018 06:31:33 +0900 (JST)
Subject: [ruby-changes:52069] naruse:r64277: Remove failing specs
naruse 2018-08-11 06:31:25 +0900 (Sat, 11 Aug 2018) New Revision: 64277 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64277 Log: Remove failing specs https://rubyci.org/logs/rubyci.s3.amazonaws.com/freebsd11zfs/ruby-trunk/log/20180810T183001Z.fail.html.gz Removed files: trunk/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb trunk/spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb trunk/spec/ruby/library/socket/socket/connect_nonblock_spec.rb Index: spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb =================================================================== --- spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb (revision 64276) +++ spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb (nonexistent) @@ -1,31 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb#L0 -require_relative '../spec_helper' - -with_feature :ancillary_data do - describe 'Socket::AncillaryData#cmsg_is?' do - describe 'using :INET, :IP, :TTL as the family, level, and type' do - before do - @data = Socket::AncillaryData.new(:INET, :IP, :TTL, '') - end - - it 'returns true when comparing with IPPROTO_IP and IP_TTL' do - @data.cmsg_is?(Socket::IPPROTO_IP, Socket::IP_TTL).should == true - end - - it 'returns true when comparing with :IP and :TTL' do - @data.cmsg_is?(:IP, :TTL).should == true - end - - it 'returns false when comparing with :IP and :PKTINFO' do - @data.cmsg_is?(:IP, :PKTINFO).should == false - end - - it 'returns false when comparing with :SOCKET and :RIGHTS' do - @data.cmsg_is?(:SOCKET, :RIGHTS).should == false - end - - it 'raises SocketError when comparign with :IPV6 and :RIGHTS' do - lambda { @data.cmsg_is?(:IPV6, :RIGHTS) }.should raise_error(SocketError) - end - end - end -end Property changes on: spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb =================================================================== --- spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb (revision 64276) +++ spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb (nonexistent) @@ -1,145 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb#L0 -require_relative '../spec_helper' - -with_feature :ancillary_data do - describe 'Socket::AncillaryData.ip_pktinfo' do - describe 'with a source address and index' do - before do - @data = Socket::AncillaryData.ip_pktinfo(Addrinfo.ip('127.0.0.1'), 4) - end - - it 'returns a Socket::AncillaryData' do - @data.should be_an_instance_of(Socket::AncillaryData) - end - - it 'sets the family to AF_INET' do - @data.family.should == Socket::AF_INET - end - - it 'sets the level to IPPROTO_IP' do - @data.level.should == Socket::IPPROTO_IP - end - - it 'sets the type to IP_PKTINFO' do - @data.type.should == Socket::IP_PKTINFO - end - end - - describe 'with a source address, index, and destination address' do - before do - source = Addrinfo.ip('127.0.0.1') - dest = Addrinfo.ip('127.0.0.5') - @data = Socket::AncillaryData.ip_pktinfo(source, 4, dest) - end - - it 'returns a Socket::AncillaryData' do - @data.should be_an_instance_of(Socket::AncillaryData) - end - - it 'sets the family to AF_INET' do - @data.family.should == Socket::AF_INET - end - - it 'sets the level to IPPROTO_IP' do - @data.level.should == Socket::IPPROTO_IP - end - - it 'sets the type to IP_PKTINFO' do - @data.type.should == Socket::IP_PKTINFO - end - end - end - - describe 'Socket::AncillaryData#ip_pktinfo' do - describe 'using an Addrinfo without a port number' do - before do - @source = Addrinfo.ip('127.0.0.1') - @dest = Addrinfo.ip('127.0.0.5') - @data = Socket::AncillaryData.ip_pktinfo(@source, 4, @dest) - end - - it 'returns an Array' do - @data.ip_pktinfo.should be_an_instance_of(Array) - end - - describe 'the returned Array' do - before do - @info = @data.ip_pktinfo - end - - it 'stores an Addrinfo at index 0' do - @info[0].should be_an_instance_of(Addrinfo) - end - - it 'stores the ifindex at index 1' do - @info[1].should be_an_instance_of(Fixnum) - end - - it 'stores an Addrinfo at index 2' do - @info[2].should be_an_instance_of(Addrinfo) - end - end - - describe 'the source Addrinfo' do - before do - @addr = @data.ip_pktinfo[0] - end - - it 'uses the correct IP address' do - @addr.ip_address.should == '127.0.0.1' - end - - it 'is not the same object as the input Addrinfo' do - @addr.should_not == @source - end - end - - describe 'the ifindex' do - it 'is a Fixnum' do - @data.ip_pktinfo[1].should == 4 - end - end - - describe 'the destination Addrinfo' do - before do - @addr = @data.ip_pktinfo[2] - end - - it 'uses the correct IP address' do - @addr.ip_address.should == '127.0.0.5' - end - - it 'is not the same object as the input Addrinfo' do - @addr.should_not == @dest - end - end - end - - describe 'using an Addrinfo with a port number' do - before do - @source = Addrinfo.tcp('127.0.0.1', 80) - @dest = Addrinfo.tcp('127.0.0.5', 85) - @data = Socket::AncillaryData.ip_pktinfo(@source, 4, @dest) - end - - describe 'the source Addrinfo' do - before do - @addr = @data.ip_pktinfo[0] - end - - it 'does not contain a port number' do - @addr.ip_port.should == 0 - end - end - - describe 'the destination Addrinfo' do - before do - @addr = @data.ip_pktinfo[2] - end - - it 'does not contain a port number' do - @addr.ip_port.should == 0 - end - end - end - end -end Property changes on: spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: spec/ruby/library/socket/socket/connect_nonblock_spec.rb =================================================================== --- spec/ruby/library/socket/socket/connect_nonblock_spec.rb (revision 64276) +++ spec/ruby/library/socket/socket/connect_nonblock_spec.rb (nonexistent) @@ -1,121 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/connect_nonblock_spec.rb#L0 -require_relative '../spec_helper' -require_relative '../fixtures/classes' - -describe "Socket#connect_nonblock" do - before :each do - @hostname = "127.0.0.1" - @server = TCPServer.new(@hostname, 0) # started, but no accept - @addr = Socket.sockaddr_in(@server.addr[1], @hostname) - @socket = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0) - @thread = nil - end - - after :each do - @socket.close - @server.close - @thread.join if @thread - end - - it "connects the socket to the remote side" do - port = nil - accept = false - @thread = Thread.new do - server = TCPServer.new(@hostname, 0) - port = server.addr[1] - Thread.pass until accept - conn = server.accept - conn << "hello!" - conn.close - server.close - end - - Thread.pass until port - - addr = Socket.sockaddr_in(port, @hostname) - begin - @socket.connect_nonblock(addr) - rescue Errno::EINPROGRESS - end - - accept = true - IO.select nil, [@socket] - - begin - @socket.connect_nonblock(addr) - rescue Errno::EISCONN - # Not all OS's use this errno, so we trap and ignore it - end - - @socket.read(6).should == "hello!" - end - - platform_is_not :freebsd, :solaris, :aix do - it "raises Errno::EINPROGRESS when the connect would block" do - lambda do - @socket.connect_nonblock(@addr) - end.should raise_error(Errno::EINPROGRESS) - end - - it "raises Errno::EINPROGRESS with IO::WaitWritable mixed in when the connect would block" do - lambda do - @socket.connect_nonblock(@addr) - end.should raise_error(IO::WaitWritable) - end - - it "returns :wait_writable in exceptionless mode when the connect would block" do - @socket.connect_nonblock(@addr, exception: false).should == :wait_writable - end - end -end - -describe 'Socket#connect_nonblock' do - SocketSpecs.each_ip_protocol do |family, ip_address| - describe 'using a DGRAM socket' do - before do - @server = Socket.new(family, :DGRAM) - @client = Socket.new(family, :DGRAM) - @sockaddr = Socket.sockaddr_in(0, ip_address) - - @server.bind(@sockaddr) - end - - after do - @client.close - @server.close - end - - it 'returns 0 when successfully connected using a String' do - @client.connect_nonblock(@server.getsockname).should == 0 - end - - it 'returns 0 when successfully connected using an Addrinfo' do - @client.connect_nonblock(@server.connect_address).should == 0 - end - - it 'raises TypeError when passed a Fixnum' do - lambda { @client.connect_nonblock(666) }.should raise_error(TypeError) - end - end - - describe 'using a STREAM socket' do - before do - @server = Socket.new(family, :STREAM) - @client = Socket.new(family, :STREAM) - @sockaddr = Socket.sockaddr_in(0, ip_address) - end - - after do - @client.close - @server.close - end - - it 'raises IO:EINPROGRESSWaitWritable when the connection would block' do - @server.bind(@sockaddr) - - lambda { - @client.connect_nonblock(@server.getsockname) - }.should raise_error(IO::EINPROGRESSWaitWritable) - end - end - end -end Property changes on: spec/ruby/library/socket/socket/connect_nonblock_spec.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/