about summary refs log tree commit homepage
path: root/test/test_tmpio.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_tmpio.rb')
-rw-r--r--test/test_tmpio.rb4
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