diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2023-04-20 11:02:45 +0200 |
---|---|---|
committer | Lars Kanis <lars@greiz-reinsdorf.de> | 2023-04-20 13:12:26 +0200 |
commit | ad1a2e0cd5970e5d1618782a6ac2d5328811370d (patch) | |
tree | dbca438a1d8cf159757afb7687d52fbf9c275b0f /spec/ffi/library_spec.rb | |
parent | 80726b2217eb43a094101377c4273b7b2fdf4833 (diff) | |
download | ffi-ad1a2e0cd5970e5d1618782a6ac2d5328811370d.tar.gz |
Ensure some relevant constants are available in Ractor
Diffstat (limited to 'spec/ffi/library_spec.rb')
-rw-r--r-- | spec/ffi/library_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/ffi/library_spec.rb b/spec/ffi/library_spec.rb index 5b806bb..f223d26 100644 --- a/spec/ffi/library_spec.rb +++ b/spec/ffi/library_spec.rb @@ -322,4 +322,17 @@ describe "Library" do expect(val[:data]).to eq(i) end end + + it "should have shareable constants for Ractor", :ractor do + res = Ractor.new do + [ + FFI::Library::LIBC, + FFI::Library::CURRENT_PROCESS, + FFI::CURRENT_PROCESS, + FFI::USE_THIS_PROCESS_AS_LIBRARY, + ] + end.take + + expect( res.size ).to be > 0 + end end |