summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo Anjo <ivo@ivoanjo.me>2021-02-21 12:56:22 +0000
committerIvo Anjo <ivo@ivoanjo.me>2021-02-21 12:58:10 +0000
commitdf411d08f6e444402bc4950b8622cf6b03ea0c96 (patch)
tree521b01a2838718c755107002f8c2554ecd05d6a9
parent0d1990bd304bf35ad02581bccb3c4cb5842f33f2 (diff)
downloadffi-df411d08f6e444402bc4950b8622cf6b03ea0c96.tar.gz
Clarify that TruffleRuby/JRuby do not use a dispatcher thread
-rw-r--r--spec/ffi/function_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/ffi/function_spec.rb b/spec/ffi/function_spec.rb
index 9939942..a7d6dc7 100644
--- a/spec/ffi/function_spec.rb
+++ b/spec/ffi/function_spec.rb
@@ -23,12 +23,10 @@ describe FFI::Function do
context 'when called with a block' do
it 'creates a thread for dispatching callbacks and sets its name' do
- skip "not yet supported on TruffleRuby" if RUBY_ENGINE == "truffleruby"
- skip "not yet supported on JRuby" if RUBY_ENGINE == 'jruby'
-
+ skip 'this is MRI-specific' if RUBY_ENGINE == 'truffleruby' || RUBY_ENGINE == 'jruby'
FFI::Function.new(:int, []) { 5 } # Trigger initialization
- expect(Thread.list.map(&:name)).to include("FFI::Function Callback Dispatcher")
+ expect(Thread.list.map(&:name)).to include('FFI::Function Callback Dispatcher')
end
end