diff options
author | Eric Wong <e@80x24.org> | 2016-07-12 21:11:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-12 21:13:20 +0000 |
commit | 946171bbc2e681cbab93863069767dd0fa4b6844 (patch) | |
tree | c2e2326ed3ac6df4ae04dd660b75cd05394e2fcf /test/test_tmpio.rb | |
parent | e6b13ef8ba6eaa3efe3808845ddfe7e0b7b1c46b (diff) | |
download | yahns-946171bbc2e681cbab93863069767dd0fa4b6844.tar.gz |
This allows us to work transparently with our OpenSSL workaround[*] while allowing us to reuse our non-sendfile compatibility code. Unfortunately, this means we duplicate a lot of code from the normal wbuf code for now; but that should be fairly stable at this point. [*] https://bugs.ruby-lang.org/issues/12085
Diffstat (limited to 'test/test_tmpio.rb')
-rw-r--r-- | test/test_tmpio.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_tmpio.rb b/test/test_tmpio.rb index 7d25d3f..3bcf3ca 100644 --- a/test/test_tmpio.rb +++ b/test/test_tmpio.rb @@ -5,6 +5,10 @@ require_relative 'helper' class TestTmpIO < Testcase + def setup + skip 'sendfile missing' unless IO.instance_methods.include?(:sendfile) + end + def test_writev a, b = UNIXSocket.pair a.extend Kgio::PipeMethods |