blob f6a854392b56bc2ed4a728120d59ca780d34f4f3 405 bytes (raw)
name: test/test_connect_fd_leak.rb # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| | require 'test/unit'
require 'io/nonblock'
$-w = true
require 'kgio'
class TestConnectFDLeak < Test::Unit::TestCase
def test_unix_socket
nr = 0
path = "/non/existent/path"
assert(! File.exist?(path), "#{path} should not exist")
assert_nothing_raised do
begin
sock = Kgio::UNIXSocket.new(path)
rescue Errno::ENOENT
end while (nr += 1) < 10000
end
end
end
|
debug log:
solving f6a8543 ...
found f6a8543 in https://yhbt.net/kgio.git/
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://yhbt.net/kgio.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).