ruby-changes:22808
From: usa <ko1@a...>
Date: Wed, 29 Feb 2012 15:40:19 +0900 (JST)
Subject: [ruby-changes:22808] usa:r34857 (trunk): * test/ruby/memory_status.rb (Memory): syntax error.
usa 2012-02-29 15:39:22 +0900 (Wed, 29 Feb 2012) New Revision: 34857 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34857 Log: * test/ruby/memory_status.rb (Memory): syntax error. Modified files: trunk/ChangeLog trunk/test/ruby/memory_status.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 34856) +++ ChangeLog (revision 34857) @@ -1,3 +1,7 @@ +Wed Feb 29 15:38:50 2012 NAKAMURA Usaku <usa@r...> + + * test/ruby/memory_status.rb (Memory): syntax error. + Wed Feb 29 13:06:42 2012 Nobuyoshi Nakada <nobu@r...> * test/ruby/memory_status.rb: use /proc/self/status if it is in Index: test/ruby/memory_status.rb =================================================================== --- test/ruby/memory_status.rb (revision 34856) +++ test/ruby/memory_status.rb (revision 34857) @@ -3,7 +3,7 @@ vals = [] case - when File.exist?(procfile = "/proc/self/status") and (pat = /^Vm(\w+):\s+(\d+)/) =~ File.binread(procfile) + when File.exist?(procfile = "/proc/self/status") && (pat = /^Vm(\w+):\s+(\d+)/) =~ File.binread(procfile) PROC_FILE = procfile VM_PAT = pat def self.read_status -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/