From 332135e2a14eb8726e916c16b14962a990252044 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 11 May 2014 21:48:05 +0000 Subject: test_wbuf: workaround Linux-specific behavior 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. --- test/test_wbuf.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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 -- cgit v1.2.3-24-ge0c7