Skip to content

Commit

Permalink
Removed Process.kill spec checking EPERM.
Browse files Browse the repository at this point in the history
There is no reliable way to guarantee that a specific PID is not killable
by the user running the specs, even when not superuser. On the other hand,
there is no way to make a process that is not killable because to do so would
require escalating privileges.
  • Loading branch information
brixen committed Nov 1, 2014
1 parent f846083 commit 5cd0c42
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions spec/ruby/core/process/kill_spec.rb
Expand Up @@ -62,14 +62,6 @@
end
end

as_user do
describe "Process.kill" do
it "raises an Errno::EPERM if permission is denied" do
lambda { Process.kill("SIGKILL", 1) }.should raise_error(Errno::EPERM)
end
end
end

describe "Process.kill" do
before :each do
@sp1 = ProcessSpecs::Signalizer.new
Expand Down

0 comments on commit 5cd0c42

Please sign in to comment.