summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process/waitpid_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/process/waitpid_spec.rb')
-rw-r--r--spec/ruby/core/process/waitpid_spec.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/spec/ruby/core/process/waitpid_spec.rb b/spec/ruby/core/process/waitpid_spec.rb
index f7cf1a45a8..9b2f49e7cf 100644
--- a/spec/ruby/core/process/waitpid_spec.rb
+++ b/spec/ruby/core/process/waitpid_spec.rb
@@ -1,13 +1,7 @@
require_relative '../../spec_helper'
describe "Process.waitpid" do
- it "returns nil when the process has not yet completed and WNOHANG is specified" do
- pid = spawn("sleep 5")
- begin
- Process.waitpid(pid, Process::WNOHANG).should == nil
- Process.kill("KILL", pid)
- ensure
- Process.wait(pid)
- end
+ it "is an alias of Process.wait" do
+ Process.method(:waitpid).should == Process.method(:wait)
end
end