summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process/status/to_i_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/process/status/to_i_spec.rb')
-rw-r--r--spec/ruby/core/process/status/to_i_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/process/status/to_i_spec.rb b/spec/ruby/core/process/status/to_i_spec.rb
index a284f64f86..7cde9b915b 100644
--- a/spec/ruby/core/process/status/to_i_spec.rb
+++ b/spec/ruby/core/process/status/to_i_spec.rb
@@ -2,12 +2,12 @@ require_relative '../../../spec_helper'
describe "Process::Status#to_i" do
it "returns an integer when the child exits" do
- ruby_exe('exit 48')
+ ruby_exe('exit 48', exit_status: 48)
$?.to_i.should be_an_instance_of(Integer)
end
it "returns an integer when the child is signaled" do
- ruby_exe('raise SignalException, "TERM"')
+ ruby_exe('raise SignalException, "TERM"', exit_status: platform_is(:windows) ? 3 : nil)
$?.to_i.should be_an_instance_of(Integer)
end
end