[前][次][番号順一覧][スレッド一覧]

ruby-changes:17389

From: suke <ko1@a...>
Date: Sat, 2 Oct 2010 23:03:14 +0900 (JST)
Subject: [ruby-changes:17389] Ruby:r29394 (trunk): test/win32ole/test_thread.rb: add for win32ole with Thread.

suke	2010-10-02 23:03:03 +0900 (Sat, 02 Oct 2010)

  New Revision: 29394

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29394

  Log:
    test/win32ole/test_thread.rb: add for win32ole with Thread.

  Added files:
    trunk/test/win32ole/test_thread.rb
  Modified files:
    trunk/ChangeLog

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29393)
+++ ChangeLog	(revision 29394)
@@ -1,3 +1,7 @@
+Sat Oct  2 22:59:32 2010  Masaki Suketa <masaki.suketa@n...>
+
+	* test/win32ole/test_thread.rb: add for win32ole with Thread.
+
 Fri Oct  1 17:03:00 2010  URABE Shyouhei  <shyouhei@r...>
 
 	* test/webrick/test_httpproxy.rb (TestWEBrickHTTPProxy::test_upstream_proxy):
Index: test/win32ole/test_thread.rb
===================================================================
--- test/win32ole/test_thread.rb	(revision 0)
+++ test/win32ole/test_thread.rb	(revision 29394)
@@ -0,0 +1,20 @@
+begin
+  require 'win32ole'
+rescue LoadError
+end
+require 'test/unit'
+
+if defined?(WIN32OLE)
+  class TestThread < Test::Unit::TestCase
+    #
+    # test for Bug #2618(ruby-core:27634)
+    #
+    def test_creating_win32ole_object_in_thread
+      t = Thread.new do
+        dict = WIN32OLE.new('Scripting.Dictionary')
+        assert(true)
+      end
+      t.join
+    end
+  end
+end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]