From b4ec4a41c24105efbb43f9b70ca7f36d22f98294 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 4 Dec 2020 16:40:02 +0100 Subject: Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && * Otherwise those tests, etc cannot run on alternative Ruby implementations. --- test/net/http/test_httpresponse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/net/http') diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb index 628414493c..a70a9bce34 100644 --- a/test/net/http/test_httpresponse.rb +++ b/test/net/http/test_httpresponse.rb @@ -78,7 +78,7 @@ EOS def test_read_body_block_mod # http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3019353 - skip 'too unstable with --jit-wait, and extending read_timeout did not help it' if RubyVM::MJIT.enabled? + skip 'too unstable with --jit-wait, and extending read_timeout did not help it' if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? IO.pipe do |r, w| buf = 'x' * 1024 buf.freeze -- cgit v1.2.3