summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSorah Fukumori <[email protected]>2024-05-31 03:44:31 +0900
committerGitHub <[email protected]>2024-05-30 18:44:31 +0000
commit22e4eeda6561693367fc7a00b92b90f46b09cabd (patch)
tree0f77bf3f3d3438471d86cc5d43ac46fee9459381 /test
parent4f160ad9cfc0f2690a5acca301dedff4f901a673 (diff)
ci: Test whether GMP is working in compilers.yml (#10875)
Avoid reoccurence of [Bug #20515] Requires https://github.com/ruby/ruby/pull/10876 since 18eaf0be905e3e251423b42d6f4e56b7cae1bc3b bug: https://bugs.ruby-lang.org/issues/20515
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_bignum.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb
index 1f882c6cb9..0179a3c630 100644
--- a/test/ruby/test_bignum.rb
+++ b/test/ruby/test_bignum.rb
@@ -821,5 +821,11 @@ class TestBignum < Test::Unit::TestCase
assert_nil(T1024P.infinite?)
assert_nil((-T1024P).infinite?)
end
+
+ def test_gmp_version
+ if RbConfig::CONFIG.fetch('configure_args').include?("'--with-gmp'")
+ assert_equal(true, defined?(Integer::GMP_VERSION))
+ end
+ end if ENV['GITHUB_WORKFLOW'] == 'Compilations'
end
end