1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Unit test fix: skip tests for signal USR1 in Windows.

This commit is contained in:
SilverPhoenix99 2021-07-05 09:51:43 +01:00 committed by André Luis Leal Cardoso Junior
parent c817305b3a
commit 6292a91a0b

View file

@ -186,6 +186,10 @@ describe Pry do
describe "inside signal handler" do describe "inside signal handler" do
before do before do
unless Signal.list.has_key?('USR1')
skip "Host OS #{RbConfig::CONFIG['host_os']} doesn't support signal USR1"
end
if Pry::Helpers::Platform.jruby? if Pry::Helpers::Platform.jruby?
skip "jruby allows mutex usage in signal handlers" skip "jruby allows mutex usage in signal handlers"
end end