diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-17 12:09:21 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-17 12:09:21 +0000 |
commit | d80a9afb186028c13e5087b2e6d3a2a0ccfe98b8 (patch) | |
tree | 4e1b849f03a57c03deb42a4fe1e7cc2d199c22dd | |
parent | df5604ce5d5e01b064378eb886a72c939f82e2c4 (diff) |
* test/ruby/test_process.rb (test_getpriority, test_setpriority): use
PRIO_PROCESS instead of PRIO_USER.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_process.rb | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Thu Jul 17 21:08:49 2008 Yusuke Endoh <[email protected]> + + * 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 <[email protected]> * pack.c (pack_unpack): fix v and V with big endian. diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 9f3c362a25..b45cbcc2dd 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -946,15 +946,15 @@ class TestProcess < Test::Unit::TestCase 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 |