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/net/http | |
parent | 83e983ab61b532d17a1177c66e3e43a5042edc1f (diff) |
Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) &&
* Otherwise those tests, etc cannot run on alternative Ruby implementations.
Diffstat (limited to 'test/net/http')
-rw-r--r-- | test/net/http/test_httpresponse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |