summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-08 04:38:00 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-08 04:38:00 +0000
commite29ed24c56e7bc15b5f6a26cbfc40877b2fd5116 (patch)
treea2ef079798a38b1d810f10b7c6af79515f34f279
parentf09f5bc32b54e9d2e9f594fd2a2358af0a0f999a (diff)
Non-MRI runtimes (like Rubinius) may implement garbage
collection very differently than MRI.
-rw-r--r--test/unit/test_http_parser.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/test_http_parser.rb b/test/unit/test_http_parser.rb
index e528be7..222c227 100644
--- a/test/unit/test_http_parser.rb
+++ b/test/unit/test_http_parser.rb
@@ -550,6 +550,8 @@ class HttpParserTest < Test::Unit::TestCase
       diff = after - before
       assert(diff < 10000, "memory grew more than 10M: #{diff}")
     end
-  end if RUBY_PLATFORM =~ /linux/ && File.readable?(LINUX_PROC_PID_STATUS)
+  end if RUBY_PLATFORM =~ /linux/ &&
+         File.readable?(LINUX_PROC_PID_STATUS) &&
+         !defined?(RUBY_ENGINE)
 
 end