Skip to content

Commit

Permalink
Tests to move between size pools are flaky on Windows too [ci skip]
Browse files Browse the repository at this point in the history
Needs more investigations.
  • Loading branch information
nobu committed Aug 2, 2023
1 parent e4fcac4 commit c5abe0d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/ruby/test_gc_compact.rb
Expand Up @@ -310,6 +310,7 @@ def test_updating_references_for_embed_frozen_shared_arrays

def test_moving_arrays_down_size_pools
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
pend "Flaky on some platforms" if /solaris|mswin/i =~ RUBY_PLATFORM

assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10, signal: :SEGV)
begin;
Expand All @@ -330,6 +331,7 @@ def test_moving_arrays_down_size_pools

def test_moving_arrays_up_size_pools
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
pend "Flaky on some platforms" if /solaris|mswin/i =~ RUBY_PLATFORM

assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10, signal: :SEGV)
begin;
Expand All @@ -352,7 +354,7 @@ def test_moving_arrays_up_size_pools

def test_moving_objects_between_size_pools
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
omit "Flaky on Solaris" if /solaris/i =~ RUBY_PLATFORM
pend "Flaky on some platforms" if /solaris|mswin/i =~ RUBY_PLATFORM

assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10, signal: :SEGV)
begin;
Expand Down Expand Up @@ -383,6 +385,7 @@ def add_ivars

def test_moving_strings_up_size_pools
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
pend "Flaky on some platforms" if /solaris|mswin/i =~ RUBY_PLATFORM

assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10, signal: :SEGV)
begin;
Expand All @@ -402,6 +405,7 @@ def test_moving_strings_up_size_pools

def test_moving_strings_down_size_pools
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
pend "Flaky on some platforms" if /solaris|mswin/i =~ RUBY_PLATFORM

assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10, signal: :SEGV)
begin;
Expand All @@ -425,7 +429,7 @@ def test_moving_hashes_down_size_pools
# 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
pend "Flaky on some platforms" if /solaris|mswin/i =~ RUBY_PLATFORM

assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10, signal: :SEGV)
begin;
Expand Down

0 comments on commit c5abe0d

Please sign in to comment.