diff options
Diffstat (limited to 'test/test_linux.rb')
-rw-r--r-- | test/test_linux.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_linux.rb b/test/test_linux.rb index a84eecf..0e79a86 100644 --- a/test/test_linux.rb +++ b/test/test_linux.rb @@ -67,6 +67,17 @@ class TestLinux < Test::Unit::TestCase assert_equal 1, stats[tmp.path].queued end + def test_unix_all_unused + tmp = Tempfile.new("\xde\xad\xbe\xef") # valid path, really :) + File.unlink(tmp.path) + us = UNIXServer.new(tmp.path) + stats = unix_listener_stats + assert stats.keys.include?(tmp.path), stats.inspect + + assert_equal 0, stats[tmp.path].active + assert_equal 0, stats[tmp.path].queued + end + def test_unix_resolves_symlinks tmp = Tempfile.new("\xde\xad\xbe\xef") # valid path, really :) File.unlink(tmp.path) |