Skip to content

Commit

Permalink
Add spec for waitpid(... WNOHANG) returning nil. #3117.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Jul 9, 2015
1 parent e4b3f8b commit ae6deed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/ruby/core/process/waitpid_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@

describe "Process.waitpid" do
it "needs to be reviewed for spec completeness"

it "returns nil when the process has not yet completed and WNOHANG is specified" do
pid = spawn("sleep 5")
Process.waitpid(pid, Process::WNOHANG).should == nil
end
end

0 comments on commit ae6deed

Please sign in to comment.