Hello community, here is the log from the commit of package rubygem-kgio for openSUSE:Factory checked in at 2020-03-07 21:38:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-kgio (Old) and /work/SRC/openSUSE:Factory/.rubygem-kgio.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-kgio" Sat Mar 7 21:38:37 2020 rev:4 rq:773779 version:2.11.3 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-kgio/rubygem-kgio.changes 2018-02-12 10:15:05.417774833 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-kgio.new.26092/rubygem-kgio.changes 2020-03-07 21:38:39.408289095 +0100 @@ -1,0 +2,25 @@ +Mon Feb 10 15:02:41 UTC 2020 - Stephan Kulow <co...@suse.com> + +- updated to version 2.11.3 + see installed NEWS + + === kgio 2.11.3 / 2020-01-08 09:25 UTC + + Some doc and warning fixes for newer Rubies. + + We're no longer on bogomips.org since it's due + for expiry and I can't pay extortionists for a .org, so + s/bogomips.org/yhbt.net/ for now, and be prepared to move again + when extortionists move onto the .net TLD. + + pkg.mk: use --local to "gem install" + pkg.mk: use dark216 theme for Earth Day 2019 + test: fix warnings with RUBYOPT=-w + tests: fix unused variable warnings from newer Rubies + test_connect_fd_leak: do not close socket if non-existent + test_syssend: avoid warning on cleanup + build: remove olddoc from the gemspec + doc: remove private email and outdated gmane archives + doc: move from bogomips.org/kgio to yhbt.net/kgio + +------------------------------------------------------------------- Old: ---- kgio-2.11.2.gem New: ---- kgio-2.11.3.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-kgio.spec ++++++ --- /var/tmp/diff_new_pack.EJWBNa/_old 2020-03-07 21:38:40.224289645 +0100 +++ /var/tmp/diff_new_pack.EJWBNa/_new 2020-03-07 21:38:40.240289656 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-kgio # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ # Name: rubygem-kgio -Version: 2.11.2 +Version: 2.11.3 Release: 0 %define mod_name kgio %define mod_full_name %{mod_name}-%{version} @@ -32,12 +32,12 @@ BuildRequires: %{rubydevel} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url: https://bogomips.org/kgio/ +URL: https://yhbt.net/kgio/ Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: rubygem-kgio-rpmlintrc Source2: gem2rpm.yml Summary: kinder, gentler I/O for Ruby -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Development/Languages/Ruby %description ++++++ kgio-2.11.2.gem -> kgio-2.11.3.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.olddoc.yml new/.olddoc.yml --- old/.olddoc.yml 2018-01-30 22:12:15.000000000 +0100 +++ new/.olddoc.yml 2020-01-08 10:25:58.000000000 +0100 @@ -1,13 +1,11 @@ --- -cgit_url: https://bogomips.org/kgio.git -git_url: git://bogomips.org/kgio.git -ml_url: https://bogomips.org/kgio-public/ -rdoc_url: https://bogomips.org/kgio/ -public_email: kgio-pub...@bogomips.org -private_email: k...@bogomips.org +cgit_url: https://yhbt.net/kgio.git +git_url: git://yhbt.net/kgio.git +ml_url: https://yhbt.net/kgio-public/ +rdoc_url: https://yhbt.net/kgio/ +public_email: kgio-pub...@yhbt.net noindex: - LATEST - TODO nntp_url: - nntp://news.public-inbox.org/inbox.comp.lang.ruby.kgio - - nntp://news.gmane.org/gmane.comp.lang.ruby.kgio.general diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GIT-VERSION-FILE new/GIT-VERSION-FILE --- old/GIT-VERSION-FILE 2018-01-30 22:12:15.000000000 +0100 +++ new/GIT-VERSION-FILE 2020-01-08 10:25:58.000000000 +0100 @@ -1 +1 @@ -GIT_VERSION = 2.11.2 +GIT_VERSION = 2.11.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GIT-VERSION-GEN new/GIT-VERSION-GEN --- old/GIT-VERSION-GEN 2018-01-30 22:12:15.000000000 +0100 +++ new/GIT-VERSION-GEN 2020-01-08 10:25:58.000000000 +0100 @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v2.11.2 +DEF_VER=v2.11.3 LF=' ' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GNUmakefile new/GNUmakefile --- old/GNUmakefile 2018-01-30 22:12:15.000000000 +0100 +++ new/GNUmakefile 2020-01-08 10:25:58.000000000 +0100 @@ -1,4 +1,4 @@ all:: -RSYNC_DEST := bogomips.org:/srv/bogomips/kgio +RSYNC_DEST := yhbt.net:/srv/yhbt/kgio rfpackage := kgio include pkg.mk diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HACKING new/HACKING --- old/HACKING 2018-01-30 22:12:15.000000000 +0100 +++ new/HACKING 2020-01-08 10:25:58.000000000 +0100 @@ -2,14 +2,11 @@ === Documentation -We use the latest version of {olddoc}[https://80x24.org/olddoc/] as -much as possible. - Please wrap documentation at 72 characters-per-line or less (long URLs are exempt) so it is comfortably readable from terminals. When referencing mailing list posts, use -<tt>https://bogomips.org/kgio-public/$MESSAGE_ID/</tt> if possible +<tt>https://yhbt.net/kgio-public/$MESSAGE_ID/</tt> if possible Message-ID remains searchable even if the archive becomes unavailable. === Code Compatibility @@ -28,7 +25,7 @@ Contributions are welcome in the form of patches, pull requests, code review, testing, documentation, user support or any other feedback. The -{kgio mailing list}[mailto:kgio-pub...@bogomips.org] is the +{kgio mailing list}[mailto:kgio-pub...@yhbt.net] is the central coordination point for all user and developer feedback and bug reports. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ISSUES new/ISSUES --- old/ISSUES 2018-01-30 22:12:15.000000000 +0100 +++ new/ISSUES 2020-01-08 10:25:58.000000000 +0100 @@ -1,18 +1,14 @@ = Issues -The kgio {mailing list}[mailto:kgio-pub...@bogomips.org] is the best +The kgio {mailing list}[mailto:kgio-pub...@yhbt.net] is the best place to report bugs, submit patches and/or obtain support after you -have searched the mailing list archives at https://bogomips.org/kgio-public/ -and {documentation}[https://bogomips.org/kgio/]. +have searched the mailing list archives at https://yhbt.net/kgio-public/ +and {documentation}[https://yhbt.net/kgio/]. * Do not {top post}[http://catb.org/jargon/html/T/top-post.html] in replies * Quote only the relevant portions of the message you're replying to * Do not send any HTML mail at all -If your issue is of a sensitive nature or you're just shy in public, -then feel free to email us privately at mailto:k...@bogomips.org -instead and your issue will be handled discreetly. - If you don't get a response within a few days, we may have forgotten about it so feel free to ask again. @@ -24,11 +20,10 @@ == Mailing List Info -* subscribe: mailto:kgio-public+subscr...@bogomips.org -* post: mailto:kgio-pub...@bogomips.org -* private: mailto:k...@bogomips.org +* subscribe: mailto:kgio-public+subscr...@yhbt.net +* post: mailto:kgio-pub...@yhbt.net == Mailing List Archives -* https://bogomips.org/kgio-public/ +* https://yhbt.net/kgio-public/ * nntp://news.public-inbox.org/inbox.comp.lang.ruby.kgio diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LATEST new/LATEST --- old/LATEST 2018-01-30 22:12:15.000000000 +0100 +++ new/LATEST 2020-01-08 10:25:58.000000000 +0100 @@ -1,9 +1,19 @@ -=== kgio 2.11.2 - fix Ruby 2.5 compatibility for accept_class / 2018-01-30 21:11 UTC +=== kgio 2.11.3 / 2020-01-08 09:25 UTC - This release fixes a bug affecting the Rainbows! web server - which uses Kgio.accept_class: + Some doc and warning fixes for newer Rubies. - https://bogomips.org/rainbows-public/canp6qojxrbplqmoppg7xmzbc+oyqlwccq1ipvoyneqpxdew...@mail.gmail.com/ + We're no longer on bogomips.org since it's due + for expiry and I can't pay extortionists for a .org, so + s/bogomips.org/yhbt.net/ for now, and be prepared to move again + when extortionists move onto the .net TLD. - * accept: avoid passing unnecessary arg to rb_funcall + pkg.mk: use --local to "gem install" + pkg.mk: use dark216 theme for Earth Day 2019 + test: fix warnings with RUBYOPT=-w + tests: fix unused variable warnings from newer Rubies + test_connect_fd_leak: do not close socket if non-existent + test_syssend: avoid warning on cleanup + build: remove olddoc from the gemspec + doc: remove private email and outdated gmane archives + doc: move from bogomips.org/kgio to yhbt.net/kgio diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NEWS new/NEWS --- old/NEWS 2018-01-30 22:12:15.000000000 +0100 +++ new/NEWS 2020-01-08 10:25:58.000000000 +0100 @@ -1,3 +1,22 @@ +=== kgio 2.11.3 / 2020-01-08 09:25 UTC + + Some doc and warning fixes for newer Rubies. + + We're no longer on bogomips.org since it's due + for expiry and I can't pay extortionists for a .org, so + s/bogomips.org/yhbt.net/ for now, and be prepared to move again + when extortionists move onto the .net TLD. + + pkg.mk: use --local to "gem install" + pkg.mk: use dark216 theme for Earth Day 2019 + test: fix warnings with RUBYOPT=-w + tests: fix unused variable warnings from newer Rubies + test_connect_fd_leak: do not close socket if non-existent + test_syssend: avoid warning on cleanup + build: remove olddoc from the gemspec + doc: remove private email and outdated gmane archives + doc: move from bogomips.org/kgio to yhbt.net/kgio + === kgio 2.11.2 - fix Ruby 2.5 compatibility for accept_class / 2018-01-30 21:11 UTC This release fixes a bug affecting the Rainbows! web server diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README new/README --- old/README 2018-01-30 22:12:15.000000000 +0100 +++ new/README 2020-01-08 10:25:58.000000000 +0100 @@ -39,13 +39,13 @@ You can get the latest source via git from the following locations (these versions may not be stable): - git://bogomips.org/kgio.git + git://yhbt.net/kgio.git git://repo.or.cz/kgio.git (mirror) You may browse the code from the web and download the latest snapshot tarballs here: -* https://bogomips.org/kgio.git +* https://yhbt.net/kgio.git * http://repo.or.cz/w/kgio.git (gitweb) See the HACKING guide on how to contribute and build prerelease gems @@ -55,7 +55,7 @@ All feedback (bug reports, user/development dicussion, patches, pull requests) go to the mailing list/newsgroup. See the ISSUES document for -information on the {kgio mailing list}[mailto:kgio-pub...@bogomips.org] +information on the {kgio mailing list}[mailto:kgio-pub...@yhbt.net] For the latest on kgio releases, you may check our NEWS page (and subscribe to our Atom feed). Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kgio.gemspec new/kgio.gemspec --- old/kgio.gemspec 2018-01-30 22:12:15.000000000 +0100 +++ new/kgio.gemspec 2020-01-08 10:25:58.000000000 +0100 @@ -1,23 +1,26 @@ ENV["VERSION"] or abort "VERSION= must be specified" manifest = File.readlines('.manifest').map! { |x| x.chomp! } -require 'olddoc' -extend Olddoc::Gemspec -name, summary, title = readme_metadata Gem::Specification.new do |s| s.name = %q{kgio} s.version = ENV["VERSION"].dup - s.homepage = Olddoc.config['rdoc_url'] - s.authors = ["#{name} hackers"] - s.description = readme_description - s.email = %q{kgio-pub...@bogomips.org} - s.extra_rdoc_files = extra_rdoc_files(manifest) + s.homepage = 'https://yhbt.net/kgio/' + s.authors = ['kgio hackers'] + s.description = <<EOF +This is a legacy project, do not use it for new projects. Ruby +2.3 and later should make this obsolete. kgio provides +non-blocking I/O methods for Ruby without raising exceptions on +EAGAIN and EINPROGRESS. +EOF + s.email = %q{kgio-pub...@yhbt.net} + s.extra_rdoc_files = IO.readlines('.document').map!(&:chomp!).keep_if do |f| + File.exist?(f) + end s.files = manifest - s.summary = summary + s.summary = 'kinder, gentler I/O for Ruby' s.test_files = Dir['test/test_*.rb'] s.extensions = %w(ext/kgio/extconf.rb) - s.add_development_dependency('olddoc', '~> 1.0') s.add_development_dependency('test-unit', '~> 3.0') # s.add_development_dependency('strace_me', '~> 1.0') # Linux only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2018-01-30 22:12:15.000000000 +0100 +++ new/metadata 2020-01-08 10:25:58.000000000 +0100 @@ -1,30 +1,16 @@ --- !ruby/object:Gem::Specification name: kgio version: !ruby/object:Gem::Version - version: 2.11.2 + version: 2.11.3 platform: ruby authors: - kgio hackers autorequire: bindir: bin cert_chain: [] -date: 2018-01-30 00:00:00.000000000 Z +date: 2020-01-08 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency - name: olddoc - requirement: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: '1.0' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: '1.0' -- !ruby/object:Gem::Dependency name: test-unit requirement: !ruby/object:Gem::Requirement requirements: @@ -38,12 +24,12 @@ - - "~>" - !ruby/object:Gem::Version version: '3.0' -description: |- +description: | This is a legacy project, do not use it for new projects. Ruby 2.3 and later should make this obsolete. kgio provides non-blocking I/O methods for Ruby without raising exceptions on EAGAIN and EINPROGRESS. -email: kgio-pub...@bogomips.org +email: kgio-pub...@yhbt.net executables: [] extensions: - ext/kgio/extconf.rb @@ -55,7 +41,6 @@ - LATEST - ISSUES - HACKING -- lib/kgio.rb - ext/kgio/accept.c - ext/kgio/autopush.c - ext/kgio/connect.c @@ -134,7 +119,7 @@ - test/test_unix_connect.rb - test/test_unix_server.rb - test/test_unix_server_read_client_write.rb -homepage: https://bogomips.org/kgio/ +homepage: https://yhbt.net/kgio/ licenses: - LGPL-2.1+ metadata: {} @@ -153,8 +138,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubyforge_project: -rubygems_version: 2.7.3 +rubygems_version: 3.0.2 signing_key: specification_version: 4 summary: kinder, gentler I/O for Ruby diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pkg.mk new/pkg.mk --- old/pkg.mk 2018-01-30 22:12:15.000000000 +0100 +++ new/pkg.mk 2020-01-08 10:25:58.000000000 +0100 @@ -60,7 +60,7 @@ -find lib -type f -name '*.rbc' -exec rm -f '{}' ';' -find ext -type f -name '*.rbc' -exec rm -f '{}' ';' $(RM) -r doc - $(RDOC) -f oldweb + $(RDOC) -f dark216 $(OLDDOC) merge install -m644 COPYING doc/COPYING install -m644 NEWS doc/NEWS @@ -86,7 +86,7 @@ gem: $(pkggem) install-gem: $(pkggem) - gem install $(CURDIR)/$< + gem install --local $(CURDIR)/$< $(pkggem): manifest fix-perms gem build $(rfpackage).gemspec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/lib_read_write.rb new/test/lib_read_write.rb --- old/test/lib_read_write.rb 2018-01-30 22:12:15.000000000 +0100 +++ new/test/lib_read_write.rb 2020-01-08 10:25:58.000000000 +0100 @@ -166,6 +166,7 @@ rescue EOFError break rescue => e + warn "#{e.message} (#{e.class})" end while true dig.hexdigest end @@ -203,6 +204,7 @@ rescue EOFError break rescue => e + warn "#{e.message} (#{e.class})" end while true dig.hexdigest end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/lib_server_accept.rb new/test/lib_server_accept.rb --- old/test/lib_server_accept.rb 2018-01-30 22:12:15.000000000 +0100 +++ new/test/lib_server_accept.rb 2020-01-08 10:25:58.000000000 +0100 @@ -20,6 +20,7 @@ b = @srv.kgio_tryaccept assert_kind_of Kgio::Socket, b assert_equal @host, b.kgio_addr + a.close end def test_tryaccept_flags @@ -28,6 +29,7 @@ b = @srv.kgio_tryaccept nil, 0 assert_kind_of Kgio::Socket, b assert_equal 0, b.fcntl(Fcntl::F_GETFD) + a.close end def test_blocking_accept_flags @@ -36,6 +38,7 @@ b = @srv.kgio_accept nil, 0 assert_kind_of Kgio::Socket, b assert_equal 0, b.fcntl(Fcntl::F_GETFD) + a.close end def test_tryaccept_fail @@ -44,7 +47,7 @@ def test_blocking_accept t0 = Time.now - pid = fork { sleep 1; a = client_connect; sleep } + pid = fork { sleep 1; a = client_connect; sleep; a.close } b = @srv.kgio_accept elapsed = Time.now - t0 assert_kind_of Kgio::Socket, b @@ -57,7 +60,7 @@ def test_blocking_accept_with_nonblock_socket @srv.nonblock = true t0 = Time.now - pid = fork { sleep 1; a = client_connect; sleep } + pid = fork { sleep 1; a = client_connect; sleep; a.close } b = @srv.kgio_accept elapsed = Time.now - t0 assert_kind_of Kgio::Socket, b @@ -67,7 +70,7 @@ assert elapsed >= 1, "elapsed: #{elapsed}" t0 = Time.now - pid = fork { sleep 6; a = client_connect; sleep } + pid = fork { sleep 6; a = client_connect; sleep; a.close } b = @srv.kgio_accept elapsed = Time.now - t0 assert_kind_of Kgio::Socket, b @@ -77,7 +80,7 @@ assert elapsed >= 6, "elapsed: #{elapsed}" t0 = Time.now - pid = fork { sleep 1; a = client_connect; sleep } + pid = fork { sleep 1; a = client_connect; sleep; a.close } b = @srv.kgio_accept elapsed = Time.now - t0 assert_kind_of Kgio::Socket, b diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_accept_class.rb new/test/test_accept_class.rb --- old/test/test_accept_class.rb 2018-01-30 22:12:15.000000000 +0100 +++ new/test/test_accept_class.rb 2020-01-08 10:25:58.000000000 +0100 @@ -30,33 +30,35 @@ @host = ENV["TEST_HOST"] || '127.0.0.1' @srv = Kgio::TCPServer.new(@host, 0) @port = @srv.addr[1] + socks = [] Kgio.accept_class = Kgio::TCPSocket - client = TCPSocket.new(@host, @port) + socks << TCPSocket.new(@host, @port) assert_instance_of Kgio::TCPSocket, @srv.kgio_accept - client = TCPSocket.new(@host, @port) + socks << TCPSocket.new(@host, @port) IO.select([@srv]) assert_instance_of Kgio::TCPSocket, @srv.kgio_tryaccept Kgio.accept_class = nil - client = TCPSocket.new(@host, @port) + socks << TCPSocket.new(@host, @port) assert_instance_of Kgio::Socket, @srv.kgio_accept - client = TCPSocket.new(@host, @port) + socks << TCPSocket.new(@host, @port) IO.select([@srv]) assert_instance_of Kgio::Socket, @srv.kgio_tryaccept Kgio.accept_class = Kgio::UNIXSocket - client = TCPSocket.new(@host, @port) + socks << TCPSocket.new(@host, @port) assert_instance_of Kgio::UNIXSocket, @srv.kgio_accept - client = TCPSocket.new(@host, @port) + socks << TCPSocket.new(@host, @port) IO.select([@srv]) assert_instance_of Kgio::UNIXSocket, @srv.kgio_tryaccept - client = TCPSocket.new(@host, @port) + socks << TCPSocket.new(@host, @port) assert_instance_of FooSocket, @srv.kgio_accept(FooSocket) - client = TCPSocket.new(@host, @port) + socks << TCPSocket.new(@host, @port) IO.select([@srv]) assert_instance_of FooSocket, @srv.kgio_tryaccept(FooSocket) + socks.each(&:close) end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_connect_fd_leak.rb new/test/test_connect_fd_leak.rb --- old/test/test_connect_fd_leak.rb 2018-01-30 22:12:15.000000000 +0100 +++ new/test/test_connect_fd_leak.rb 2020-01-08 10:25:58.000000000 +0100 @@ -13,5 +13,6 @@ sock = Kgio::UNIXSocket.new(path) rescue Errno::ENOENT end while (nr += 1) < 10000 + sock.close if sock end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_kgio_addr.rb new/test/test_kgio_addr.rb --- old/test/test_kgio_addr.rb 2018-01-30 22:12:15.000000000 +0100 +++ new/test/test_kgio_addr.rb 2020-01-08 10:25:58.000000000 +0100 @@ -15,5 +15,6 @@ s = accepted.kgio_addr! assert_equal addr, s assert_equal addr, accepted.instance_variable_get(:@kgio_addr) + client.close end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_poll.rb new/test/test_poll.rb --- old/test/test_poll.rb 2018-01-30 22:12:15.000000000 +0100 +++ new/test/test_poll.rb 2020-01-08 10:25:58.000000000 +0100 @@ -43,7 +43,6 @@ end def test_poll_close - foo = nil thr = Thread.new { sleep 0.100; @wr.close } t0 = Time.now res = Kgio.poll({@rd => Kgio::POLLIN}) @@ -55,7 +54,6 @@ def test_signal_close orig = trap(:USR1) { @rd.close } - res = nil thr = Thread.new { sleep 0.100; Process.kill(:USR1, $$) } t0 = Time.now assert_raises(IOError) do @@ -65,8 +63,8 @@ diff = Time.now - t0 thr.join assert diff >= 0.010, "diff=#{diff}" - ensure - trap(:USR1, orig) + ensure + trap(:USR1, orig) end def test_poll_EINTR @@ -83,8 +81,8 @@ assert_nil res assert diff >= 1.0, "diff=#{diff}" assert ok - ensure - trap(:USR1, orig) + ensure + trap(:USR1, orig) end def test_poll_signal_torture diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_syssend.rb new/test/test_syssend.rb --- old/test/test_syssend.rb 2018-01-30 22:12:15.000000000 +0100 +++ new/test/test_syssend.rb 2020-01-08 10:25:58.000000000 +0100 @@ -37,6 +37,8 @@ # blocking th = Thread.new { loop { acc.kgio_syssend("ZZZZ", 0) } } assert_nil th.join(0.1) + th.kill + assert th.join(10), 'thread should be killed' ensure [ srv, acc, client ].each { |io| io.close if io } end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_tcp6_client_read_server_write.rb new/test/test_tcp6_client_read_server_write.rb --- old/test/test_tcp6_client_read_server_write.rb 2018-01-30 22:12:15.000000000 +0100 +++ new/test/test_tcp6_client_read_server_write.rb 2020-01-08 10:25:58.000000000 +0100 @@ -3,6 +3,7 @@ begin tmp = TCPServer.new(ENV["TEST_HOST6"] || '::1', 0) ipv6_enabled = true + tmp.close rescue => e warn "skipping IPv6 tests, host does not seem to be IPv6 enabled:" warn " #{e.class}: #{e}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_tryopen.rb new/test/test_tryopen.rb --- old/test/test_tryopen.rb 2018-01-30 22:12:15.000000000 +0100 +++ new/test/test_tryopen.rb 2020-01-08 10:25:58.000000000 +0100 @@ -59,8 +59,9 @@ tmp.close! file = Kgio::File.tryopen(path, IO::RDWR|IO::CREAT, 0000) assert_equal 0100000, File.stat(path).mode - ensure - File.unlink path + file.close + ensure + File.unlink path end require "benchmark"