diff options
| author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 14:22:48 +0000 |
|---|---|---|
| committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 14:22:48 +0000 |
| commit | ef1107c93b0b8f831520c5c883fb6ed774f19362 (patch) | |
| tree | e6ebb15acb07f96253b3ea9d3058d7cc14ed44f8 /test/ruby | |
| parent | 46a13c762b04eb09fc5d114406615bf9e0e9f355 (diff) | |
| download | ruby-ef1107c93b0b8f831520c5c883fb6ed774f19362.tar.gz ruby-ef1107c93b0b8f831520c5c883fb6ed774f19362.tar.xz ruby-ef1107c93b0b8f831520c5c883fb6ed774f19362.zip | |
* test/ruby/test_thread.rb (test_list): call Thread.pass to run t1.
fixed [ruby-core:18264].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_thread.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 046eaec7b..043917f2e 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -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 } |
