Skip to content

Commit 02299d6

Browse files
committed
Exclude failing GC finalizer tests with ASAN
* See https://bugs.ruby-lang.org/issues/21613
1 parent 3ec597f commit 02299d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/ruby/test_gc.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,8 @@ def test_vm_object
825825
end
826826

827827
def test_exception_in_finalizer_procs
828+
require '-test-/stack'
829+
omit 'failing with ASAN' if Thread.asan?
828830
assert_in_out_err(["-W0"], "#{<<~"begin;"}\n#{<<~'end;'}", %w[c1 c2])
829831
c1 = proc do
830832
puts "c1"
@@ -845,6 +847,8 @@ def test_exception_in_finalizer_procs
845847
end
846848

847849
def test_exception_in_finalizer_method
850+
require '-test-/stack'
851+
omit 'failing with ASAN' if Thread.asan?
848852
assert_in_out_err(["-W0"], "#{<<~"begin;"}\n#{<<~'end;'}", %w[c1 c2])
849853
def self.c1(x)
850854
puts "c1"

0 commit comments

Comments
 (0)