diff options
author | Peter Zhu <[email protected]> | 2024-10-16 09:45:44 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2024-10-16 10:17:54 -0400 |
commit | ebfe615a0cdffc28a73f279e3df8068831ddbf6e (patch) | |
tree | 11c48c96693c03f23c08a2e44bd9151108ff9b74 /test/ruby | |
parent | c6c1e111b1d917103652c400fada09313457dc73 (diff) |
Skip GC compaction tests in test_yjit.rb when not supported
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11905
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_yjit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb index c91d631256..5f0a5035b0 100644 --- a/test/ruby/test_yjit.rb +++ b/test/ruby/test_yjit.rb @@ -1150,6 +1150,8 @@ class TestYJIT < Test::Unit::TestCase end def test_code_gc_with_auto_compact + omit "compaction is not supported on this platform" unless GC.respond_to?(:compact) + assert_compiles((code_gc_helpers + <<~'RUBY'), exits: :any, result: :ok, mem_size: 1, code_gc: true) # Test ISEQ moves in the middle of code GC GC.auto_compact = true @@ -1278,6 +1280,8 @@ class TestYJIT < Test::Unit::TestCase end def test_gc_compact_cyclic_branch + omit "compaction is not supported on this platform" unless GC.respond_to?(:compact) + assert_compiles(<<~'RUBY', result: 2) def foo i = 0 |