summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-20 01:03:15 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-20 01:03:15 +0000
commiteb78bb5f23d13f4f90169f2de62780f00f865e92 (patch)
tree35192834d1bf4e285f3b0771251080b22ad31f41 /bootstraptest
parent9a1ac80e093bc01d67acc4789e1aabf4b25b6a48 (diff)
downloadruby-eb78bb5f23d13f4f90169f2de62780f00f865e92.tar.gz
ruby-eb78bb5f23d13f4f90169f2de62780f00f865e92.tar.xz
ruby-eb78bb5f23d13f4f90169f2de62780f00f865e92.zip
* insnhelper.ci (vm_expandarray): fix sp increase place.
a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32581]. * bootstraptest/test_massign.rb: add a test for above. * bootstraptest/test_syntax.rb: fix last committed test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_massign.rb15
-rw-r--r--bootstraptest/test_syntax.rb2
2 files changed, 16 insertions, 1 deletions
diff --git a/bootstraptest/test_massign.rb b/bootstraptest/test_massign.rb
index 0c73b7146..ad31729a7 100644
--- a/bootstraptest/test_massign.rb
+++ b/bootstraptest/test_massign.rb
@@ -159,3 +159,18 @@ assert_equal 'ok', %q{
ary = [0, 1, 2, 3, 4, 5, 6]
a, b, *c, d, e, f = *ary; [a, b, c, d, e, f]
}
+
+
+#
+assert_equal 'ok', %q{
+ a,s=[],"aaa"
+ 300.times { a<<s; s=s.succ }
+ eval <<-END__
+ GC.stress=true
+ Fiber.new do
+ #{ a.join(",") },*zzz=1
+ end.resume
+ END__
+ :ok
+}, '[ruby-dev:32581]'
+
diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb
index 37b07b0c1..2be4efb38 100644
--- a/bootstraptest/test_syntax.rb
+++ b/bootstraptest/test_syntax.rb
@@ -644,7 +644,7 @@ assert_equal 'true', %q{
assert_normal_exit %q{
eval "while true; return; end rescue p $!"
}, '[ruby-dev:31663]'
-assert_equal :ok, %q{
+assert_equal '1', %q{
def bar
raise
end