summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-14 10:02:51 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-14 10:02:51 +0000
commit909a4c4efb14e69aa282b4baa3fd84237037ed9d (patch)
tree86477a2fa45b184bf486273cb80503cdebd1c59b /bootstraptest
parent71152897103939d4566b39e3f08061cd18b8714b (diff)
downloadruby-909a4c4efb14e69aa282b4baa3fd84237037ed9d.tar.gz
ruby-909a4c4efb14e69aa282b4baa3fd84237037ed9d.tar.xz
ruby-909a4c4efb14e69aa282b4baa3fd84237037ed9d.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@15044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_thread.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index b3592e9bd..9711535d7 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?
+}