From e29ed24c56e7bc15b5f6a26cbfc40877b2fd5116 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 8 Jun 2010 04:38:00 +0000 Subject: test_http_parser: memory usage test for non-MRI Non-MRI runtimes (like Rubinius) may implement garbage collection very differently than MRI. --- test/unit/test_http_parser.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7