disable gc compaction test on ppc64le

This commit is contained in:
Mamoru TASAKA 2022-07-13 22:29:37 +09:00
parent f1d0e8031c
commit edb492c8c0

View File

@ -224,6 +224,11 @@ sed -i '/Minitest::Reporters/ s/^/#/' test/helper.rb
# PPC64LE with ruby3.1 does not seem to support GC.compact # PPC64LE with ruby3.1 does not seem to support GC.compact
%ifarch ppc64le %ifarch ppc64le
export NOKOGIRI_TEST_GC_LEVEL=major 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 %endif
env \ env \