Skip to content

Commit

Permalink
Unit test fix: skip tests for signal USR1 in Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverPhoenix99 committed Jul 5, 2021
1 parent d3e2d1c commit 6dc1f09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/pry_spec.rb
Expand Up @@ -186,6 +186,10 @@ class Hello

describe "inside signal handler" 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?
skip "jruby allows mutex usage in signal handlers"
end
Expand Down

0 comments on commit 6dc1f09

Please sign in to comment.