mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@6f38a82
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b864bd05bf
commit
4fbb9aa3cb
145 changed files with 2847 additions and 2596 deletions
|
|
@ -1,7 +1,6 @@
|
|||
require_relative '../../../spec_helper'
|
||||
|
||||
describe "Process::Status#exitstatus" do
|
||||
|
||||
before :each do
|
||||
ruby_exe("exit(42)")
|
||||
end
|
||||
|
|
@ -10,4 +9,17 @@ describe "Process::Status#exitstatus" do
|
|||
$?.exitstatus.should == 42
|
||||
end
|
||||
|
||||
describe "for a child that raised SignalException" do
|
||||
before :each do
|
||||
ruby_exe("raise SignalException, 'SIGTERM'")
|
||||
end
|
||||
|
||||
platform_is_not :windows do
|
||||
# The exitstatus is not set in these cases. See the termsig_spec
|
||||
# for info on where the signal number (SIGTERM) is available.
|
||||
it "returns nil" do
|
||||
$?.exitstatus.should == nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -13,6 +13,18 @@ describe "Process::Status#termsig" do
|
|||
end
|
||||
end
|
||||
|
||||
describe "for a child that raised SignalException" do
|
||||
before :each do
|
||||
ruby_exe("raise SignalException, 'SIGTERM'")
|
||||
end
|
||||
|
||||
platform_is_not :windows do
|
||||
it "returns the signal" do
|
||||
$?.termsig.should == Signal.list["TERM"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "for a child that was sent a signal" do
|
||||
|
||||
before :each do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue