diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-12-04 16:40:02 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-12-04 16:45:54 +0100 |
commit | b4ec4a41c24105efbb43f9b70ca7f36d22f98294 (patch) | |
tree | 6e257f60ef031d6ea815123c0ce0ed85e10a66be /test/ruby/test_fiber.rb | |
parent | 83e983ab61b532d17a1177c66e3e43a5042edc1f (diff) | |
download | ruby-b4ec4a41c24105efbb43f9b70ca7f36d22f98294.tar.gz |
Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) &&
* Otherwise those tests, etc cannot run on alternative Ruby implementations.
Diffstat (limited to 'test/ruby/test_fiber.rb')
-rw-r--r-- | test/ruby/test_fiber.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb index 8729a86f1b..96ffc79950 100644 --- a/test/ruby/test_fiber.rb +++ b/test/ruby/test_fiber.rb @@ -34,7 +34,7 @@ class TestFiber < Test::Unit::TestCase end def test_many_fibers - skip 'This is unstable on GitHub Actions --jit-wait. TODO: debug it' if RubyVM::MJIT.enabled? + skip 'This is unstable on GitHub Actions --jit-wait. TODO: debug it' if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? max = 10_000 assert_equal(max, max.times{ Fiber.new{} |