diff options
author | Eric Wong <e@80x24.org> | 2014-02-08 03:28:49 -0500 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-02-08 08:35:41 +0000 |
commit | 922e7141e30fc0ef5fc973716fab20a272531300 (patch) | |
tree | 1b3d50c5074df40a2544c4c0e5c5b8fe0d2f5997 /test/test_mt_accept.rb | |
parent | 2f7660ed8124bef150c48ce14f9df759e467e44c (diff) | |
download | yahns-922e7141e30fc0ef5fc973716fab20a272531300.tar.gz |
Diffstat (limited to 'test/test_mt_accept.rb')
-rw-r--r-- | test/test_mt_accept.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_mt_accept.rb b/test/test_mt_accept.rb index e006af8..37813d4 100644 --- a/test/test_mt_accept.rb +++ b/test/test_mt_accept.rb @@ -10,6 +10,8 @@ class TestMtAccept < Testcase alias teardown server_helper_teardown def test_mt_accept + skip "Linux kernel required" unless RUBY_PLATFORM =~ /linux/ + skip "/proc not mounted" unless File.directory?("/proc") err, cfg, host, port = @err, Yahns::Config.new, @srv.addr[3], @srv.addr[1] opts = { threads: 1 } cfg.instance_eval do @@ -45,4 +47,4 @@ class TestMtAccept < Testcase ensure quit_wait(pid) end -end if RUBY_PLATFORM =~ /linux/ && File.directory?("/proc") +end |