Skip to content

Commit 34fd55d

Browse files
committed
feature_spec.rb: Don't test --enable-all with --zjit*
1 parent 5796377 commit 34fd55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/ruby/command_line/feature_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
env = {'RUBYOPT' => '-w'}
5252
# Use a single variant here because it can be quite slow as it might enable jit, etc
5353
ruby_exe(e, options: "--enable-all", env: env).chomp.should == "[\"constant\", \"constant\", true, true]"
54-
end
54+
end unless defined?(RubyVM::YJIT) && defined?(RubyVM::ZJIT) && RubyVM::ZJIT.enabled? # You're not supposed to enable YJIT with --enable-all when ZJIT options are passed.
5555
end
5656

5757
it "can be used with all for disable" do

0 commit comments

Comments
 (0)