public
Description: ruby lang (www.ruby-lang.org) svn mirror
Homepage: http://svn.ruby-lang.org/repos/ruby/
Clone URL: git://github.com/juretta/ruby.git
Search Repo:
* 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
mame (author)
Thu Jul 17 05:09:21 -0700 2008
commit  c3d13dc5484c899148aeb8d58cbad27a004c4a98
tree    4e1b849f03a57c03deb42a4fe1e7cc2d199c22dd
parent  1cf42d35dd4e9d4fc20a6873bf389eff028b60a3
...
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
0
@@ -1,3 +1,8 @@
0
+Thu Jul 17 21:08:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
0
+
0
+ * test/ruby/test_process.rb (test_getpriority, test_setpriority): use
0
+ PRIO_PROCESS instead of PRIO_USER.
0
+
0
 Thu Jul 17 20:41:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
0
 
0
   * pack.c (pack_unpack): fix v and V with big endian.
...
946
947
948
949
 
950
951
952
953
954
955
956
957
 
 
958
959
960
...
946
947
948
 
949
950
951
952
953
954
955
 
 
956
957
958
959
960
0
@@ -946,15 +946,15 @@ class TestProcess < Test::Unit::TestCase
0
   end
0
 
0
   def test_getpriority
0
- assert_kind_of(Integer, Process.getpriority(Process::PRIO_USER, 0))
0
+ assert_kind_of(Integer, Process.getpriority(Process::PRIO_PROCESS, $$))
0
   rescue NameError, NotImplementedError
0
   end
0
 
0
   def test_setpriority
0
     if defined? Process::PRIO_USER
0
       assert_nothing_raised do
0
- pr = Process.getpriority(Process::PRIO_USER, 0)
0
- Process.setpriority(Process::PRIO_USER, 0, pr)
0
+ pr = Process.getpriority(Process::PRIO_PROCESS, $$)
0
+ Process.setpriority(Process::PRIO_PROCESS, $$, pr)
0
       end
0
     end
0
   end

Comments

    No one has commented yet.