From edb492c8c00e070823006f4a84406645b4cb3f03 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Wed, 13 Jul 2022 22:29:37 +0900 Subject: [PATCH] disable gc compaction test on ppc64le --- rubygem-nokogiri.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rubygem-nokogiri.spec b/rubygem-nokogiri.spec index 08bef55..0eda88f 100644 --- a/rubygem-nokogiri.spec +++ b/rubygem-nokogiri.spec @@ -224,6 +224,11 @@ sed -i '/Minitest::Reporters/ s/^/#/' test/helper.rb # PPC64LE with ruby3.1 does not seem to support GC.compact %ifarch ppc64le export NOKOGIRI_TEST_GC_LEVEL=major +# F36 ruby has not implemented runtime GC compaction support yet +# c.f https://src.fedoraproject.org/rpms/ruby/pull-request/126 +%if 0%{?fedora} <= 36 +sed -i test/test_compaction.rb -e 's|skip unless GC.respond_to.*|skip|' +%endif %endif env \