From 22e4eeda6561693367fc7a00b92b90f46b09cabd Mon Sep 17 00:00:00 2001 From: Sorah Fukumori Date: Fri, 31 May 2024 03:44:31 +0900 Subject: 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 --- test/ruby/test_bignum.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/ruby') 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 -- cgit v1.2.3