From 485d3fa598a119b409734e0a4193d78fe50f4ff7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 9 Mar 2011 17:03:20 -0800 Subject: disable aggregate/pmq stuff under 1.8 POSIX message queues needs native threads to function. --- test/test_aggregate_pmq.rb | 4 ++++ test/test_last_data_recv_unicorn.rb | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'test') diff --git a/test/test_aggregate_pmq.rb b/test/test_aggregate_pmq.rb index ffa36cf..caaaf02 100644 --- a/test/test_aggregate_pmq.rb +++ b/test/test_aggregate_pmq.rb @@ -6,6 +6,10 @@ rescue => LoadError warn "W: #{e} skipping test" false end +if RUBY_VERSION.to_f < 1.9 + pmq = false + warn "W: skipping #{__FILE__}, only Ruby 1.9 supported for now" +end Thread.abort_on_exception = true diff --git a/test/test_last_data_recv_unicorn.rb b/test/test_last_data_recv_unicorn.rb index 19aba0d..38bdd11 100644 --- a/test/test_last_data_recv_unicorn.rb +++ b/test/test_last_data_recv_unicorn.rb @@ -10,6 +10,10 @@ rescue => LoadError warn "W: #{e} skipping test" false end +if RUBY_VERSION.to_f < 1.9 + pmq = false + warn "W: skipping test=#{__FILE__}, only Ruby 1.9 supported for now" +end class TestLastDataRecvUnicorn < Test::Unit::TestCase def setup -- cgit v1.2.3-24-ge0c7