Skip to content

Instantly share code, notes, and snippets.

@ayumin
Created August 2, 2011 21:18
Show Gist options
  • Save ayumin/1121247 to your computer and use it in GitHub Desktop.
Save ayumin/1121247 to your computer and use it in GitHub Desktop.
commit 6bff025d9965d500517a810ad8a156e8308e96e9
Author: Ayumu AIZAWA <[email protected]>
Date: Wed Aug 3 06:14:47 2011 +0900
Skip test_udp_server when address unreachable
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb
index b3b6fee..7757f70 100644
--- a/test/socket/test_socket.rb
+++ b/test/socket/test_socket.rb
@@ -302,7 +302,7 @@ class TestSocket < Test::Unit::TestCase
assert_equal(ai.ip_address, addr.ip_address)
}
}
- rescue NotImplementedError, Errno::ENOSYS
+ rescue NotImplementedError, RuntimeError, Errno::ENOSYS
skipped = true
skip "need sendmsg and recvmsg"
ensure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment