Skip to content

Commit 8afebf0

Browse files
committed
[GR-29686] Fix transient failures in Signal.trap specs
PullRequest: truffleruby/2447
2 parents 7847167 + 7e29861 commit 8afebf0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/ruby/core/signal/trap_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,11 @@
4949

5050
it "registers an handler doing nothing with :IGNORE" do
5151
Signal.trap :HUP, :IGNORE
52-
Process.kill(:HUP, Process.pid).should == 1
52+
Signal.trap(:HUP, @saved_trap).should == "IGNORE"
5353
end
5454

5555
it "can register a new handler after :IGNORE" do
5656
Signal.trap :HUP, :IGNORE
57-
Process.kill(:HUP, Process.pid).should == 1
5857

5958
done = false
6059
Signal.trap(:HUP) do

0 commit comments

Comments
 (0)