From e0cde13a3c81c00dbe587968a2c9beec68e0ddf2 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 1 Sep 2011 05:12:02 +0000 Subject: backported r33153 from trunk. * test/ruby/test_thread.rb (TestThread#test_no_valid_cfp): skip when win32ole is required. in such case, win32ole redefines Thread#initialize, and the block argument becomes to be not the top of the thread, then this testcase always fails. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_thread.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index c16aa87896..57e02849b9 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -606,6 +606,7 @@ class TestThread < Test::Unit::TestCase end def test_no_valid_cfp + skip 'with win32ole, cannot run this testcase because win32ole redefines Thread#intialize' if defined?(WIN32OLE) bug5083 = '[ruby-dev:44208]' error = assert_raise(RuntimeError) do Thread.new(&Module.method(:nesting)).join -- cgit v1.2.3