about summary refs log tree commit homepage
path: root/test/test_wbuf.rb
diff options
context:
space:
mode:
authorEric Wong <e+fbsd@80x24.org>2014-05-11 21:48:05 +0000
committerEric Wong <e@80x24.org>2014-05-12 01:13:37 +0000
commit332135e2a14eb8726e916c16b14962a990252044 (patch)
treed27903ee43c161e4c14c659805204b63f6004f56 /test/test_wbuf.rb
parent35a3db222b2670bd090ac74f563e7380590e7067 (diff)
downloadyahns-332135e2a14eb8726e916c16b14962a990252044.tar.gz
Followup-to commit ade89b5142bedbcf07f38aa062bfdbfcb8bc48d3
("wbuf: hack to avoid response corruption on FreeBSD")

It seems that we cannot test wbuf internals reliably outside of
Linux, however as long as the end result (via HTTP) is unchanged
on other OSes, we seem to be doing OK.
Diffstat (limited to 'test/test_wbuf.rb')
-rw-r--r--test/test_wbuf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_wbuf.rb b/test/test_wbuf.rb
index 644c76b..bfdfa2b 100644
--- a/test/test_wbuf.rb
+++ b/test/test_wbuf.rb
@@ -15,6 +15,7 @@ class TestWbuf < Testcase
   end
 
   def test_wbuf
+    skip "sendfile not Linux-compatible" if RUBY_PLATFORM !~ /linux/
     buf = "*" * (16384 * 2)
     nr = 1000
     [ true, false ].each do |persist|
@@ -59,6 +60,7 @@ class TestWbuf < Testcase
 
   def test_wbuf_blocked
     a, b = socketpair
+    skip "sendfile not Linux-compatible" if RUBY_PLATFORM !~ /linux/
     buf = "." * 4096
     4.times do
       begin