diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-29 17:56:46 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-29 17:56:46 +0000 |
commit | f35c3a54986f13821cffe0e9c9b41a4335b1e642 (patch) | |
tree | f31e678e29f674556e210d7d8e513468f07e8ad2 /spec/rubyspec/core/process/fixtures | |
parent | a578c375ada240e7c647d5ad838a92725f6e3f9d (diff) |
Clean up a bit the Process.setpriority specs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/rubyspec/core/process/fixtures')
-rw-r--r-- | spec/rubyspec/core/process/fixtures/setpriority.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/rubyspec/core/process/fixtures/setpriority.rb b/spec/rubyspec/core/process/fixtures/setpriority.rb new file mode 100644 index 0000000000..cf22d85b12 --- /dev/null +++ b/spec/rubyspec/core/process/fixtures/setpriority.rb @@ -0,0 +1,12 @@ +case ARGV[0] +when "process" + which = Process::PRIO_PROCESS +when "group" + Process.setpgrp + which = Process::PRIO_PGRP +end + +priority = Process.getpriority(which, 0) +p priority +p Process.setpriority(which, 0, priority + 1) +p Process.getpriority(which, 0) |