From 099b87be3f282dc6870e378eda8a21abb49e0de9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 18 Oct 2025 17:41:20 +0900 Subject: [PATCH] Totally disable the DFLTCC extension before tests --- Rakefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Rakefile b/Rakefile index fdab5bb..fa6f9da 100644 --- a/Rakefile +++ b/Rakefile @@ -1,16 +1,15 @@ require "bundler/gem_tasks" require "rake/testtask" -desc "Run tests" -task :test do +if RUBY_PLATFORM.include?("s390x") # Avoid possible test failures with the zlib applying the following patch on # s390x CPU architecture. # https://github.com/madler/zlib/pull/410 - ENV["DFLTCC"] = "0" if RUBY_PLATFORM =~ /s390x/ - Rake::Task["test_internal"].invoke + ENV["DFLTCC"] = "0" end -Rake::TestTask.new(:test_internal) do |t| +desc "Run tests" +Rake::TestTask.new do |t| t.libs << "test/lib" t.ruby_opts << "-rhelper" t.test_files = FileList["test/**/test_*.rb"]