diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2025-09-04 14:16:57 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-09-04 14:17:42 -0700 |
| commit | 34fd55d504e24ea4a368744f46ba84512d43c5a8 (patch) | |
| tree | 79d4ec70a281b3cb9da62c4c2ea8d39284d749b4 | |
| parent | 579637747a680aad620e11cac8cbe6acb626e7ec (diff) | |
feature_spec.rb: Don't test --enable-all with --zjit*
| -rw-r--r-- | spec/ruby/command_line/feature_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/command_line/feature_spec.rb b/spec/ruby/command_line/feature_spec.rb index 4a24cc6795..838581d04a 100644 --- a/spec/ruby/command_line/feature_spec.rb +++ b/spec/ruby/command_line/feature_spec.rb @@ -51,7 +51,7 @@ describe "The --enable and --disable flags" do env = {'RUBYOPT' => '-w'} # Use a single variant here because it can be quite slow as it might enable jit, etc ruby_exe(e, options: "--enable-all", env: env).chomp.should == "[\"constant\", \"constant\", true, true]" - end + 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. end it "can be used with all for disable" do |
