summaryrefslogtreecommitdiff
path: root/bootstraptest/test_fork.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 08:27:14 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 08:27:14 +0000
commit6cbc9ac208b5bbaf5d43cdd47268f41d6a98970b (patch)
tree6ad5d66650b294806b34bf103ad6f12b11603345 /bootstraptest/test_fork.rb
parent5c00dd28c5e16c85ed2ada37cae3b8be3a08ef3e (diff)
* thread.c (rb_thread_atfork): fix to mark thread object.
[ruby-dev:32404] * bootstraptest/test_knownbug.rb, test_fork.rb: move a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_fork.rb')
-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
new file mode 100644
index 0000000..4632ca2
--- /dev/null
+++ b/bootstraptest/test_fork.rb
@@ -0,0 +1,6 @@
+assert_equal '0', %q{
+ GC.stress = true
+ pid = fork {}
+ Process.wait pid
+ $?.to_i
+}, '[ruby-dev:32404]'