about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-05 12:30:45 -0700
committerEric Wong <normalperson@yhbt.net>2011-05-05 12:34:48 -0700
commitf589a9ae18216e1220bea8f905f33051e88f1ae7 (patch)
treefe2292d0a454367193afc034d88b0d21adada4be
parent9900efecb60635ad97b5c00c76eb60252839b1c1 (diff)
downloadkgio-f589a9ae18216e1220bea8f905f33051e88f1ae7.tar.gz
OpenBSD seems to make connect() return success immediately even
on a non-blocking socket, so it's hard to test for.

Thanks to Jeremy Evans to reporting the issue under OpenBSD.

ref: http://mid.gmane.org/20110505181846.GB9693@jeremyevans.local
-rw-r--r--test/test_tcp_connect.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_tcp_connect.rb b/test/test_tcp_connect.rb
index 4fb4070..9756407 100644
--- a/test/test_tcp_connect.rb
+++ b/test/test_tcp_connect.rb
@@ -66,7 +66,7 @@ class TestKgioTcpConnect < Test::Unit::TestCase
 
   def test_wait_writable_set
     sock = SubSocket.new(@addr)
-    assert_equal "waited", sock.foo
+    assert_equal "waited", sock.foo if RUBY_PLATFORM =~ /linux/
     assert_equal nil, sock.kgio_write("HELLO")
   end
 end