ruby-changes:6591
From: mame <ko1@a...>
Date: Thu, 17 Jul 2008 21:09:41 +0900 (JST)
Subject: [ruby-changes:6591] Ruby:r18107 (trunk): * test/ruby/test_process.rb (test_getpriority, test_setpriority): use
mame 2008-07-17 21:09:21 +0900 (Thu, 17 Jul 2008) New Revision: 18107 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18107 Log: * test/ruby/test_process.rb (test_getpriority, test_setpriority): use PRIO_PROCESS instead of PRIO_USER. Modified files: trunk/ChangeLog trunk/test/ruby/test_process.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 18106) +++ ChangeLog (revision 18107) @@ -1,3 +1,8 @@ +Thu Jul 17 21:08:49 2008 Yusuke Endoh <mame@t...> + + * test/ruby/test_process.rb (test_getpriority, test_setpriority): use + PRIO_PROCESS instead of PRIO_USER. + Thu Jul 17 20:41:42 2008 Yusuke Endoh <mame@t...> * pack.c (pack_unpack): fix v and V with big endian. Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 18106) +++ test/ruby/test_process.rb (revision 18107) @@ -946,15 +946,15 @@ end def test_getpriority - assert_kind_of(Integer, Process.getpriority(Process::PRIO_USER, 0)) + assert_kind_of(Integer, Process.getpriority(Process::PRIO_PROCESS, $$)) rescue NameError, NotImplementedError end def test_setpriority if defined? Process::PRIO_USER assert_nothing_raised do - pr = Process.getpriority(Process::PRIO_USER, 0) - Process.setpriority(Process::PRIO_USER, 0, pr) + pr = Process.getpriority(Process::PRIO_PROCESS, $$) + Process.setpriority(Process::PRIO_PROCESS, $$, pr) end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/