summaryrefslogtreecommitdiff
path: root/test/-ext-/gvl
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/gvl')
-rw-r--r--test/-ext-/gvl/test_last_thread.rb2
-rw-r--r--test/-ext-/gvl/test_ubf_async_safe.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/-ext-/gvl/test_last_thread.rb b/test/-ext-/gvl/test_last_thread.rb
index 6808e96..f1bebaf 100644
--- a/test/-ext-/gvl/test_last_thread.rb
+++ b/test/-ext-/gvl/test_last_thread.rb
@@ -11,7 +11,7 @@ class TestLastThread < Test::Unit::TestCase
}
t0 = Time.now
- Thread.current.__runnable_sleep__ 1
+ Bug::Thread.runnable_sleep 1
t1 = Time.now
t = t1 - t0
diff --git a/test/-ext-/gvl/test_ubf_async_safe.rb b/test/-ext-/gvl/test_ubf_async_safe.rb
index 85c4a7d..fdaa4d4 100644
--- a/test/-ext-/gvl/test_ubf_async_safe.rb
+++ b/test/-ext-/gvl/test_ubf_async_safe.rb
@@ -7,7 +7,7 @@ class TestUbfAsyncSafe < Test::Unit::TestCase
require '-test-/gvl/call_without_gvl'
r.close
trap(:INT) { exit!(0) }
- Thread.current.__ubf_async_safe__(w.fileno)
+ Bug::Thread.ubf_async_safe(w.fileno)
exit!(1)
end
w.close