From 9c6fd3814b6bed2772fc540e7824febe85e9b046 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 21 Apr 2010 15:29:10 -0700 Subject: test: fix Linux memory usage test --- test/test_clogger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_clogger.rb b/test/test_clogger.rb index 42cab1c..a20793c 100644 --- a/test/test_clogger.rb +++ b/test/test_clogger.rb @@ -621,6 +621,6 @@ class TestClogger < Test::Unit::TestCase diff = after - before assert(diff < 10000, "memory grew more than 10M: #{diff}") end - end if RUBY_PLATFORM =~ /linux/ && test(?r, LINUX_PROC_PID_STATUS) + end if RUBY_PLATFORM =~ /linux/ && File.readable?(LINUX_PROC_PID_STATUS) end -- cgit v1.2.3-24-ge0c7