1 # frozen_string_literal: false
9 class TestWIN32OLE_THREAD < Test::Unit::TestCase
11 # test for Bug #2618(ruby-core:27634)
13 def assert_creating_win32ole_object_in_thread(meth)
14 t = Thread.__send__(meth) {
15 WIN32OLE.new('Scripting.Dictionary')
17 assert_nothing_raised(WIN32OLE::RuntimeError, "[Bug #2618] Thread.#{meth}") {
22 def test_creating_win32ole_object_in_thread_new
23 assert_creating_win32ole_object_in_thread(:new)
26 def test_creating_win32ole_object_in_thread_start
27 assert_creating_win32ole_object_in_thread(:start)
30 def test_creating_win32ole_object_in_thread_fork
31 assert_creating_win32ole_object_in_thread(:fork)