Do nothing in li_std_functors test when using Ruby 2.6

This test sporadically crashes when run in GitHub Actions environment,
so skip it for now when using the Ruby 2.6 version installed by rvm.
This commit is contained in:
Vadim Zeitlin 2021-10-01 04:26:15 +02:00
commit f038fcb44d

View file

@ -63,7 +63,9 @@ def test
yield method(:_map), Li_std_functors::Map yield method(:_map), Li_std_functors::Map
end end
# these should fail and not segfault # these should fail and not segfault but currently do segfault with Ruby 2.6
# in GitHub Actions environment
if RUBY_VERSION != '2.6.6'
begin begin
Li_std_functors::Set.new('sd') Li_std_functors::Set.new('sd')
rescue rescue
@ -72,5 +74,4 @@ end
test do |proc, container| test do |proc, container|
proc.call(container) proc.call(container)
end end
end