Skip to content

Commit 18ab39e

Browse files
committed
Rakefile: Update the test task to pass on Ubuntu jammy s390x.
This commit is a rework for the commit 9f3b9c4 that is a workaround fixing test failures on Ubuntu jammy s390x. This commit simplifies the workaround. Read the commit message for the commit 9f3b9c4 for details of the issue.
1 parent 3dfe3f9 commit 18ab39e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Rakefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
require "bundler/gem_tasks"
22
require "rake/testtask"
33

4-
Rake::TestTask.new(:test) do |t|
4+
desc "Run tests"
5+
task :test do
6+
# Avoid possible test failures with the zlib applying the following patch on
7+
# s390x CPU architecture.
8+
# https://github.com/madler/zlib/pull/410
9+
ENV["DFLTCC"] = "0" if RUBY_PLATFORM =~ /s390x/
10+
Rake::Task["test_internal"].invoke
11+
end
12+
13+
Rake::TestTask.new(:test_internal) do |t|
514
t.libs << "test/lib"
615
t.ruby_opts << "-rhelper"
716
t.test_files = FileList["test/**/test_*.rb"]

0 commit comments

Comments
 (0)