diff options
Diffstat (limited to 'test/fiddle/test_function.rb')
-rw-r--r-- | test/fiddle/test_function.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb index b4b2df2874..6ec40bee06 100644 --- a/test/fiddle/test_function.rb +++ b/test/fiddle/test_function.rb @@ -41,6 +41,9 @@ module Fiddle if RUBY_ENGINE == "jruby" omit("rb_str_dup() doesn't exist in JRuby") end + if RUBY_ENGINE == "truffleruby" + omit("rb_str_dup() doesn't work with TruffleRuby") + end libruby = Fiddle.dlopen(nil) rb_str_dup = Function.new(libruby['rb_str_dup'], @@ -109,8 +112,8 @@ module Fiddle end def test_last_error - if RUBY_ENGINE == "jruby" - omit("Fiddle.last_error doesn't work with JRuby") + if ffi_backend? + omit("Fiddle.last_error doesn't work with FFI backend") end func = Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP) @@ -219,6 +222,9 @@ module Fiddle if RUBY_ENGINE == "jruby" omit("rb_obj_frozen_p() doesn't exist in JRuby") end + if RUBY_ENGINE == "truffleruby" + omit("memory leak detection is fragile with TruffleRuby") + end if respond_to?(:assert_nothing_leaked_memory) rb_obj_frozen_p_symbol = Fiddle.dlopen(nil)["rb_obj_frozen_p"] |