From 01507d2f80a99985c5f25027d87e58b8a97b3da2 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 23 Jun 2023 10:35:36 -0400 Subject: [PATCH] Skip test on Solaris SPARC This test fails on Solaris SPARC with the following error and I can't figure out why: TestGCCompact#test_moving_hashes_down_size_pools Expected 499 to be >= 500. --- test/ruby/test_gc_compact.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/ruby/test_gc_compact.rb b/test/ruby/test_gc_compact.rb index 1332b6d995..44da6aabee 100644 --- a/test/ruby/test_gc_compact.rb +++ b/test/ruby/test_gc_compact.rb @@ -421,6 +421,10 @@ class TestGCCompact < Test::Unit::TestCase omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1 # AR and ST hashes are in the same size pool on 32 bit omit unless RbConfig::SIZEOF["uint64_t"] <= RbConfig::SIZEOF["void*"] + # This test fails on Solaris SPARC with the following error and I can't figure out why: + # TestGCCompact#test_moving_hashes_down_size_pools + # Expected 499 to be >= 500. + omit if /sparc-solaris/ =~ RUBY_PLATFORM assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10, signal: :SEGV) begin;