diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-27 17:08:25 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-27 17:08:25 +0000 |
commit | c180e0d8801a8fb1f4d900d6a7e36ccb7d4f557e (patch) | |
tree | 72aa6ff633585ad3c5c06422bc3554b2ff002e25 /test/-ext-/postponed_job | |
parent | f79ddbebe390cd4216bfe35e2b33aae764dee648 (diff) |
* vm_trace.c (rb_postponed_job_register_one): fix iteration bug.
* ext/-test-/postponed_job/postponed_job.c,
test/-ext-/postponed_job/test_postponed_job.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/postponed_job')
-rw-r--r-- | test/-ext-/postponed_job/test_postponed_job.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/-ext-/postponed_job/test_postponed_job.rb b/test/-ext-/postponed_job/test_postponed_job.rb index cf32eb7bd3..b1111ba330 100644 --- a/test/-ext-/postponed_job/test_postponed_job.rb +++ b/test/-ext-/postponed_job/test_postponed_job.rb @@ -21,5 +21,8 @@ class TestPostponed_job < Test::Unit::TestCase assert_match /postponed_job_call_direct_wrapper/, direct.join assert_not_match /postponed_job_register_wrapper/, registered.join + + Bug.postponed_job_register_one(ary = []) + assert_equal [1], ary end end |