aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_thread.rb
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
commit5360e77db8aa0e40c7c79cee74f91634eefa8576 (patch)
tree86477a2fa45b184bf486273cb80503cdebd1c59b /bootstraptest/test_thread.rb
parent4b8de30bc5c69b636851559689922aa522e0f472 (diff)
downloadruby-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.rb8
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?
+}