From 91ba64084bf402b532a122ef044f207c08fad376 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 19 Jan 2023 10:28:07 +0900 Subject: [PATCH] Disable GC related test, with the advice from ruby upstream --- rubygem-rspec-core.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rubygem-rspec-core.spec b/rubygem-rspec-core.spec index f870628..2b064f6 100644 --- a/rubygem-rspec-core.spec +++ b/rubygem-rspec-core.spec @@ -3,7 +3,7 @@ %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global fullver %{majorver}%{?preminorver} -%global fedorarel 1 +%global fedorarel 2 %global gem_name rspec-core @@ -105,6 +105,12 @@ sed -i '/backtrace_exclusion_patterns/ s/rspec-core/rspec-core-%{version}/' \ sed -i spec/integration/spec_file_load_errors_spec.rb \ -e '\@nicely handles load-time errors in user spec files@s| it | xit |' +# ruby3.2 + compile with YJIT + LTO seems to make rspec-core GC test fail. +# disabling this, per ruby upsteram advice: +# https://bugs.ruby-lang.org/issues/19254 +sed -i spec/rspec/core/example_spec.rb \ + -e '\@defined.*RUBY_ENGINE.*truffleruby@s|^\(.*\)$|\1 \&\& false|' + # FIXME seed 33413 sees test failure ruby -Ilib -S exe/rspec --seed 1 #33413 @@ -175,6 +181,9 @@ done %{gem_docdir} %changelog +* Thu Jan 19 2023 Mamoru TASAKA - 3.12.0-2 +- Disable GC related test, with the advice from ruby upstream + * Thu Oct 27 2022 Mamoru TASAKA - 3.12.0-1 - 3.12.0