summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-17 12:09:21 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-17 12:09:21 +0000
commitc3d13dc5484c899148aeb8d58cbad27a004c4a98 (patch)
tree4e1b849f03a57c03deb42a4fe1e7cc2d199c22dd /test/ruby
parent1cf42d35dd4e9d4fc20a6873bf389eff028b60a3 (diff)
downloadruby-c3d13dc5484c899148aeb8d58cbad27a004c4a98.tar.gz
ruby-c3d13dc5484c899148aeb8d58cbad27a004c4a98.tar.xz
ruby-c3d13dc5484c899148aeb8d58cbad27a004c4a98.zip
* test/ruby/test_process.rb (test_getpriority, test_setpriority): use
PRIO_PROCESS instead of PRIO_USER. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_process.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 9f3c362a2..b45cbcc2d 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