From f35c3a54986f13821cffe0e9c9b41a4335b1e642 Mon Sep 17 00:00:00 2001 From: eregon Date: Mon, 29 May 2017 17:56:46 +0000 Subject: 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 --- spec/rubyspec/core/process/fixtures/setpriority.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/rubyspec/core/process/fixtures/setpriority.rb (limited to 'spec/rubyspec/core/process/fixtures/setpriority.rb') 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) -- cgit v1.2.3