diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-10 08:31:17 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-10 08:31:17 +0000 |
commit | df9521fd043df1fb862e46f9b1af83223f16eb2d (patch) | |
tree | 414edcc34cd6e592b4e789c1606ba6ec2ad470a0 /spec/ruby/library/socket/constants | |
parent | 2138f24c7017298c9fffa6d3de7a53cb55b567b4 (diff) |
Remove failing spec files
Re-commit after specs are fixed.
http://rubyci.s3.amazonaws.com/freebsd11zfs/ruby-trunk/log/20180810T063001Z.log.html.gz
http://rubyci.s3.amazonaws.com/unstable10x/ruby-trunk/log/20180809T191808Z.log.html.gz
http://rubyci.s3.amazonaws.com/unstable11x/ruby-trunk/log/20180809T192406Z.log.html.gz
http://rubyci.s3.amazonaws.com/unstable10s/ruby-trunk/log/20180809T151911Z.log.html.gz
http://rubyci.s3.amazonaws.com/unstable11s/ruby-trunk/log/20180809T192507Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/socket/constants')
-rw-r--r-- | spec/ruby/library/socket/constants/constants_spec.rb | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/spec/ruby/library/socket/constants/constants_spec.rb b/spec/ruby/library/socket/constants/constants_spec.rb deleted file mode 100644 index 81ba4ed17b..0000000000 --- a/spec/ruby/library/socket/constants/constants_spec.rb +++ /dev/null @@ -1,113 +0,0 @@ -require_relative '../spec_helper' -require_relative '../fixtures/classes' - -describe "Socket::Constants" do - it "defines socket types" do - consts = ["SOCK_DGRAM", "SOCK_RAW", "SOCK_RDM", "SOCK_SEQPACKET", "SOCK_STREAM"] - consts.each do |c| - Socket::Constants.should have_constant(c) - end - end - - it "defines protocol families" do - consts = ["PF_INET6", "PF_INET", "PF_UNIX", "PF_UNSPEC"] - consts.each do |c| - Socket::Constants.should have_constant(c) - end - end - - platform_is_not :aix do - it "defines PF_IPX protocol" do - Socket::Constants.should have_constant("PF_IPX") - end - end - - it "defines address families" do - consts = ["AF_INET6", "AF_INET", "AF_UNIX", "AF_UNSPEC"] - consts.each do |c| - Socket::Constants.should have_constant(c) - end - end - - platform_is_not :aix do - it "defines AF_IPX address" do - Socket::Constants.should have_constant("AF_IPX") - end - end - - it "defines send/receive options" do - consts = ["MSG_DONTROUTE", "MSG_OOB", "MSG_PEEK"] - consts.each do |c| - Socket::Constants.should have_constant(c) - end - end - - it "defines socket level options" do - consts = ["SOL_SOCKET"] - consts.each do |c| - Socket::Constants.should have_constant(c) - end - end - - it "defines socket options" do - consts = ["SO_BROADCAST", "SO_DEBUG", "SO_DONTROUTE", "SO_ERROR", "SO_KEEPALIVE", "SO_LINGER", - "SO_OOBINLINE", "SO_RCVBUF", "SO_REUSEADDR", "SO_SNDBUF", "SO_TYPE"] - consts.each do |c| - Socket::Constants.should have_constant(c) - end - end - - it "defines multicast options" do - consts = ["IP_ADD_MEMBERSHIP", - "IP_MULTICAST_LOOP", "IP_MULTICAST_TTL"] - platform_is_not :windows do - consts += ["IP_DEFAULT_MULTICAST_LOOP", "IP_DEFAULT_MULTICAST_TTL"] - end - consts.each do |c| - Socket::Constants.should have_constant(c) - end - end - - platform_is_not :solaris, :windows, :aix do - it "defines multicast options" do - consts = ["IP_MAX_MEMBERSHIPS"] - consts.each do |c| - Socket::Constants.should have_constant(c) - end - end - end - - it "defines TCP options" do - consts = ["TCP_NODELAY"] - platform_is_not :windows do - consts << "TCP_MAXSEG" - end - consts.each do |c| - Socket::Constants.should have_constant(c) - end - end - - platform_is_not :windows do - it 'defines SCM options' do - platform_is :darwin, :freebsd do - Socket::Constants.should have_constant('SCM_CREDS') - end - platform_is_not :darwin, :freebsd do - Socket::Constants.should have_constant('SCM_CREDENTIALS') - end - end - - it 'defines error options' do - consts = ["EAI_ADDRFAMILY", "EAI_NODATA"] - - # FreeBSD (11.1, at least) obsoletes EAI_ADDRFAMILY and EAI_NODATA - platform_is :freebsd do - consts = %w(EAI_MEMORY) - end - - consts.each do |c| - Socket::Constants.should have_constant(c) - end - end - end -end |