From ed9cc7ba22bab5b3f7262d869a8bc03f14b2d4cb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 5 Jun 2010 03:26:51 +0000 Subject: File.readable? and File.writable? are more readable ...than "test ?r" and "test ?w" Not everybody comes from a Unix shell programming background, even though they *should* ;) --- test/unit/test_http_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit/test_http_parser.rb b/test/unit/test_http_parser.rb index b7c8a1c..e528be7 100644 --- a/test/unit/test_http_parser.rb +++ b/test/unit/test_http_parser.rb @@ -550,6 +550,6 @@ class HttpParserTest < 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