about summary refs log tree commit homepage
diff options
context:
space:
mode:
-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