diff options
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |