From 946171bbc2e681cbab93863069767dd0fa4b6844 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 12 Jul 2016 21:11:33 +0000 Subject: wbuf_lite: use StringIO instead of TmpIO 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 --- test/test_tmpio.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/test_tmpio.rb') 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 -- cgit v1.2.3-24-ge0c7