summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2024-01-23 11:00:00 -0800
committerTakashi Kokubun <[email protected]>2024-01-23 11:00:05 -0800
commit557b69e83b27dafea435719fc3afc2e67e155962 (patch)
tree7f5d9e6757ec37a3247c336ebe7282901d94ae54
parenta846d391d38b34fcc4f90adef967c166c923bd56 (diff)
Skip a failing test for Prism
This should be reverted once https://github.com/ruby/prism/issues/2249 is closed.
-rwxr-xr-xbootstraptest/runner.rb4
-rw-r--r--bootstraptest/test_yjit.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 039a15148d..9dc3950f07 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -798,4 +798,8 @@ def rjit_enabled?
ENV.fetch('RUN_OPTS', '').include?('rjit')
end
+def prism_enabled?
+ ENV.fetch('RUN_OPTS', '').include?('--parser=prism')
+end
+
exit main
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb
index 8ae3399dc2..b320322d84 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -14,7 +14,7 @@ assert_equal "ok", %q{
rescue ArgumentError
:ok
end
-}
+} unless prism_enabled? # https://github.com/ruby/prism/issues/2249
# regression test for send processing before side exit
assert_equal "ok", %q{