mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@ab32a1a
This commit is contained in:
parent
f616e81637
commit
d3d5ef0cca
74 changed files with 1201 additions and 324 deletions
|
@ -254,12 +254,10 @@ describe "Signal.trap" do
|
|||
r.close
|
||||
loop { w.write("a"*1024) }
|
||||
RUBY
|
||||
out = ruby_exe(code, exit_status: nil)
|
||||
out = ruby_exe(code, exit_status: :SIGPIPE)
|
||||
status = $?
|
||||
out.should == "nil\n"
|
||||
status.should.signaled?
|
||||
status.termsig.should be_kind_of(Integer)
|
||||
Signal.signame(status.termsig).should == "PIPE"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue