Skip to content

Commit 0d9911e

Browse files
eregonhsbt
authored andcommitted
Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) &&
* Otherwise those tests, etc cannot run on alternative Ruby implementations.
1 parent 71ba189 commit 0d9911e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/net/http/test_httpresponse.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_read_body_block
7878

7979
def test_read_body_block_mod
8080
# http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3019353
81-
skip 'too unstable with --jit-wait, and extending read_timeout did not help it' if RubyVM::MJIT.enabled?
81+
skip 'too unstable with --jit-wait, and extending read_timeout did not help it' if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
8282
IO.pipe do |r, w|
8383
buf = 'x' * 1024
8484
buf.freeze

0 commit comments

Comments
 (0)