Skip to content

Commit 099b87b

Browse files
committed
Totally disable the DFLTCC extension before tests
1 parent c4549d0 commit 099b87b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Rakefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
require "bundler/gem_tasks"
22
require "rake/testtask"
33

4-
desc "Run tests"
5-
task :test do
4+
if RUBY_PLATFORM.include?("s390x")
65
# Avoid possible test failures with the zlib applying the following patch on
76
# s390x CPU architecture.
87
# https://github.com/madler/zlib/pull/410
9-
ENV["DFLTCC"] = "0" if RUBY_PLATFORM =~ /s390x/
10-
Rake::Task["test_internal"].invoke
8+
ENV["DFLTCC"] = "0"
119
end
1210

13-
Rake::TestTask.new(:test_internal) do |t|
11+
desc "Run tests"
12+
Rake::TestTask.new do |t|
1413
t.libs << "test/lib"
1514
t.ruby_opts << "-rhelper"
1615
t.test_files = FileList["test/**/test_*.rb"]

0 commit comments

Comments
 (0)