From 557b69e83b27dafea435719fc3afc2e67e155962 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 23 Jan 2024 11:00:00 -0800 Subject: [PATCH] Skip a failing test for Prism This should be reverted once https://github.com/ruby/prism/issues/2249 is closed. --- bootstraptest/runner.rb | 4 ++++ bootstraptest/test_yjit.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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{