summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-07 23:59:58 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-07 23:59:58 +0000
commitc810db6362eb622faff74577edd6f902d4cf807e (patch)
treee4352cb605ac1f407f3f3f95304eddc76d563f2b /bootstraptest
parent5a066e60d9fe5462950a977f751927e1ca5b3053 (diff)
downloadruby-c810db6362eb622faff74577edd6f902d4cf807e.tar.gz
ruby-c810db6362eb622faff74577edd6f902d4cf807e.tar.xz
ruby-c810db6362eb622faff74577edd6f902d4cf807e.zip
* thread_pthread.c (rb_thread_create_timer_thread): print fatal error
message to stderr instead of using rb_bug(). * KNOWNBUGS.rb, bootstraptest/test_fork.rb: move a fixed test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_fork.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstraptest/test_fork.rb b/bootstraptest/test_fork.rb
index c6b1b71a6..60a74e8a2 100644
--- a/bootstraptest/test_fork.rb
+++ b/bootstraptest/test_fork.rb
@@ -20,3 +20,9 @@ assert_finish 10, %q{
rescue NotImplementedError
end
}, '[ruby-core:22158]'
+
+assert_normal_exit(<<'End', '[ruby-dev:37934]')
+ Thread.new { sleep 1; Thread.kill Thread.main }
+ Process.setrlimit(:NPROC, 1)
+ fork {}
+End