about summary refs log tree commit homepage
path: root/test/test_inet_diag_socket.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_inet_diag_socket.rb')
-rw-r--r--test/test_inet_diag_socket.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_inet_diag_socket.rb b/test/test_inet_diag_socket.rb
new file mode 100644
index 0000000..c40d50e
--- /dev/null
+++ b/test/test_inet_diag_socket.rb
@@ -0,0 +1,13 @@
+# -*- encoding: binary -*-
+require 'test/unit'
+require 'raindrops'
+$stderr.sync = $stdout.sync = true
+
+class TestInetDiagSocket < Test::Unit::TestCase
+  def test_new
+    sock = Raindrops::InetDiagSocket.new
+    assert_kind_of Socket, sock
+    assert_kind_of Fixnum, sock.fileno
+    assert_nil sock.close
+  end
+end if RUBY_PLATFORM =~ /linux/