aboutsummaryrefslogtreecommitdiffstats
path: root/test/drb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-12-04 16:40:02 +0100
committerBenoit Daloze <eregontp@gmail.com>2020-12-04 16:45:54 +0100
commitb4ec4a41c24105efbb43f9b70ca7f36d22f98294 (patch)
tree6e257f60ef031d6ea815123c0ce0ed85e10a66be /test/drb
parent83e983ab61b532d17a1177c66e3e43a5042edc1f (diff)
downloadruby-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/drb')
-rw-r--r--test/drb/drbtest.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb
index c9e768ad9d..16ffec904b 100644
--- a/test/drb/drbtest.rb
+++ b/test/drb/drbtest.rb
@@ -216,7 +216,7 @@ module DRbCore
def test_06_timeout
skip if RUBY_PLATFORM.include?("armv7l-linux")
skip if RUBY_PLATFORM.include?("sparc-solaris2.10")
- skip if RubyVM::MJIT.enabled? # expecting a certain delay is difficult for --jit-wait CI
+ skip if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # expecting a certain delay is difficult for --jit-wait CI
Timeout.timeout(60) do
ten = Onecky.new(10)
assert_raise(Timeout::Error) do