about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-04-21 15:29:10 -0700
committerEric Wong <normalperson@yhbt.net>2010-04-21 15:29:10 -0700
commit9c6fd3814b6bed2772fc540e7824febe85e9b046 (patch)
treea76024497f55044c2668bd7fda1987b36d2ff3d7 /test
parent0313f0651caf9ef35d320c6049d4f32ace711457 (diff)
downloadclogger-9c6fd3814b6bed2772fc540e7824febe85e9b046.tar.gz
Diffstat (limited to 'test')
-rw-r--r--test/test_clogger.rb2
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