diff options
Diffstat (limited to 'spec/ruby/optional/capi/thread_spec.rb')
-rw-r--r-- | spec/ruby/optional/capi/thread_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/optional/capi/thread_spec.rb b/spec/ruby/optional/capi/thread_spec.rb index df454d1ea8..35b58996b8 100644 --- a/spec/ruby/optional/capi/thread_spec.rb +++ b/spec/ruby/optional/capi/thread_spec.rb @@ -121,6 +121,10 @@ describe "C-API Thread function" do thr.value.should be_true end + it "runs a native function with the global lock unlocked" do + @t.rb_thread_call_without_gvl_native_function.should == Process.pid + end + guard -> { platform_is :mingw and ruby_version_is ""..."2.7" } do it "runs a C function with the global lock unlocked and unlocks IO with the generic RUBY_UBF_IO" do thr = Thread.new do |