From 4f78560cf12ad4979a5953bbf38d05e2bf264d21 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 7 Oct 2022 15:18:00 +0900 Subject: Add --with-libffi-source-dir feature and removed --enable-bundled-libffi option. (#113) https://bugs.ruby-lang.org/issues/18571 Co-authored-by: Nobuyoshi Nakada Co-authored-by: Sutou Kouhei --- test/fiddle/test_handle.rb | 3 +++ test/fiddle/test_pointer.rb | 3 +++ 2 files changed, 6 insertions(+) (limited to 'test/fiddle') diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb index 3bb80b75e2..c19bcc6623 100644 --- a/test/fiddle/test_handle.rb +++ b/test/fiddle/test_handle.rb @@ -189,6 +189,9 @@ module Fiddle end if /freebsd/=~ RUBY_PLATFORM def test_no_memory_leak + # https://github.com/ruby/fiddle/actions/runs/3202406059/jobs/5231356410 + omit if RUBY_VERSION >= '3.2' + if respond_to?(:assert_nothing_leaked_memory) n_tries = 100_000 assert_nothing_leaked_memory(SIZEOF_VOIDP * (n_tries / 100)) do diff --git a/test/fiddle/test_pointer.rb b/test/fiddle/test_pointer.rb index 7d708ee417..d6cba04bbe 100644 --- a/test/fiddle/test_pointer.rb +++ b/test/fiddle/test_pointer.rb @@ -272,6 +272,9 @@ module Fiddle end def test_no_memory_leak + # https://github.com/ruby/fiddle/actions/runs/3202406059/jobs/5231356410 + omit if RUBY_VERSION >= '3.2' + if respond_to?(:assert_nothing_leaked_memory) n_tries = 100_000 assert_nothing_leaked_memory(SIZEOF_VOIDP * (n_tries / 100)) do -- cgit v1.2.1