raindrops.git  about / heads / tags
real-time stats for preforking Rack servers
   commit 068a1f4ceeb77209503daad564735e354fd52445 (patch)
   parent 65b7739 linux_inet_diag: get rid of alloca usage
     tree efb6150c13a3ae5f4eda6c3aaa7db8345fe3adfe
   author Eric Wong <bofh@yhbt.net>  2023-06-11 21:33:28 +0000
committer Eric Wong <bofh@yhbt.net>  2023-06-26 09:16:39 +0000

test_linux_reuseport_tcp_listen_stats: skip w/o unicorn

We don't list `unicorn' as a development dependency since
unicorn currently depends on this project.  While unicorn might
drop us as a dependency, don't waste disk space and bandwidth
of potential raindrops hackers who don't have unicorn.
---
 test/test_linux_reuseport_tcp_listen_stats.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_linux_reuseport_tcp_listen_stats.rb b/test/test_linux_reuseport_tcp_listen_stats.rb
index 73995ea..4fda218 100644
--- a/test/test_linux_reuseport_tcp_listen_stats.rb
+++ b/test/test_linux_reuseport_tcp_listen_stats.rb
@@ -48,4 +48,4 @@ class TestLinuxReuseportTcpListenStats < Test::Unit::TestCase
       assert_equal [0, i+1], all[addr].to_a
     end
   end
-end if RUBY_PLATFORM =~ /linux/
+end if RUBY_PLATFORM =~ /linux/ && Object.const_defined?(:Unicorn)


glossary
--------
Commit objects reference one tree, and zero or more parents.

Single parent commits can typically generate a patch in
unified diff format via `git format-patch'.

Multiple parents means the commit is a merge.

Root commits have no ancestor.  Note that it is
possible to have multiple root commits when merging independent histories.

Every commit references one top-level tree object.

git clone http://yhbt.net/raindrops.git