diff options
-rw-r--r-- | test/test_clogger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |