From 5360e77db8aa0e40c7c79cee74f91634eefa8576 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 14 Jan 2008 10:02:51 +0000 Subject: * 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 --- bootstraptest/test_thread.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bootstraptest/test_thread.rb') 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? +} -- cgit v1.2.3