Sha256: d556d65585ab7e270751bd0e42b6d3fd29512a31f249288a4d4846e8f4baef40
Contents?: true
Size: 390 Bytes
Versions: 3
Compression:
Stored size: 390 Bytes
Contents
$-w = $stdout.sync = $stderr.sync = Thread.abort_on_exception = true require 'test/unit' require 'sleepy_penguin' def check_cloexec(io) pipe = IO.pipe rbimp = Fcntl::FD_CLOEXEC & pipe[0].fcntl(Fcntl::F_GETFD) ours = Fcntl::FD_CLOEXEC & io.fcntl(Fcntl::F_GETFD) assert_equal rbimp, ours, "CLOEXEC default does not match Ruby implementation" ensure pipe.each { |io| io.close } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sleepy_penguin-3.5.2 | test/helper.rb |
sleepy_penguin-3.5.1 | test/helper.rb |
sleepy_penguin-3.5.0 | test/helper.rb |