diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-14 10:02:51 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-14 10:02:51 +0000 |
commit | 5360e77db8aa0e40c7c79cee74f91634eefa8576 (patch) | |
tree | 86477a2fa45b184bf486273cb80503cdebd1c59b /bootstraptest/test_thread.rb | |
parent | 4b8de30bc5c69b636851559689922aa522e0f472 (diff) | |
download | ruby-5360e77db8aa0e40c7c79cee74f91634eefa8576.tar.gz |
* thread.c: clear thread structure.
(TODO: survey that child process should clear mutex or not).
* bootstraptest/test_knownbug.rb, test_thread.rb: move a fixed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_thread.rb')
-rw-r--r-- | bootstraptest/test_thread.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index b3592e9bd7..9711535d72 100644 --- a/bootstraptest/test_thread.rb +++ b/bootstraptest/test_thread.rb @@ -193,3 +193,11 @@ rescue 100 end }, '[ruby-dev:31371]' +assert_equal 'true', %{ + t = Thread.new { loop {} } + pid = fork { + exit t.status != "run" + } + Process.wait pid + $?.success? +} |