mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_thread.rb (test_list): call Thread.pass to run t1.
fixed [ruby-core:18264]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cdc2278f89
commit
31ad92b2f3
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Aug 13 23:15:58 2008 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_thread.rb (test_list): call Thread.pass to run t1.
|
||||
fixed [ruby-core:18264].
|
||||
|
||||
Wed Aug 13 23:05:51 2008 TAKAO Kouji <kouji@takao7.net>
|
||||
|
||||
* string.c (alias_func): changed to 'weak, alias' from 'alias' for
|
||||
|
|
|
@ -225,6 +225,7 @@ class TestThread < Test::Unit::TestCase
|
|||
def test_list
|
||||
assert_in_out_err([], <<-INPUT) do |r, e|
|
||||
t1 = Thread.new { sleep }
|
||||
Thread.pass
|
||||
t2 = Thread.new { loop { } }
|
||||
t3 = Thread.new { }.join
|
||||
p [Thread.current, t1, t2].sort_by {|t| t.object_id }
|
||||
|
|
Loading…
Reference in a new issue