ruby-changes:25079
From: naruse <ko1@a...>
Date: Wed, 10 Oct 2012 21:40:46 +0900 (JST)
Subject: [ruby-changes:25079] naruse:r37131 (trunk): Rename variabls
naruse 2012-10-10 21:38:15 +0900 (Wed, 10 Oct 2012) New Revision: 37131 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37131 Log: Rename variabls * uid always stores uid * user stores username or nil Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 37130) +++ test/ruby/test_process.rb (revision 37131) @@ -1481,7 +1481,7 @@ def test_execopts_uid feature6975 = '[ruby-core:47414]' - [30000, [ENV["USER"], Process.uid]].each do |user, uid| + [30000, [Process.uid, ENV["USER"]]].each do |uid, user| if user assert_nothing_raised(feature6975) do begin @@ -1498,11 +1498,10 @@ end end - uid = "#{uid || user}" assert_nothing_raised(feature6975) do begin - u = IO.popen([RUBY, "-e", "print Process.uid", uid: user], &:read) - assert_equal(uid, u, feature6975) + u = IO.popen([RUBY, "-e", "print Process.uid", uid: user||uid], &:read) + assert_equal(uid.to_s, u, feature6975) rescue Errno::EPERM, NotImplementedError end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/