Граф коммитов

122 Коммитов

Автор SHA1 Сообщение Дата
ko1 13b5b22ae6 * compile.c, compile.h: fix stack pointer issues.
calculate correct stack depth at compile time.
* insns.def (emptstack): remove it and add a new insn "adjuststack".
* bootstraptest/test_knownbug.rb: move/remove fixed test.
* bootstraptest/test_syntax.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-25 18:02:01 +00:00
akr 9b43eaf115 The [ruby-dev:32746] problem is re-introduced.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-24 07:16:41 +00:00
mame ea5aa33504 * insns.def (expandarray): fix stack inc.
* bootstraptest/test_knownbug.rb, test_massign.rb: move a fixed test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23 17:17:23 +00:00
usa 3b6f862b3a * bootstraptest/test_{knownbug,thread}.rb: support fork-less platform.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23 02:23:21 +00:00
nobu c8272db179 * bootstraptest/runner.rb (assert_valid_syntax): added.
* bootstraptest/test_knownbug.rb: added test for [ruby-list:44479]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-17 17:02:30 +00:00
nobu 23980c8ba0 * bootstraptest/test_attr.rb: moved test for [ruby-core:14641].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-17 16:59:23 +00:00
akr 4b8de30bc5 update last test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-14 09:59:58 +00:00
ko1 0c801d657a * bootstraptest/runner.rb: add "flunk" method.
* bootstraptest/test_knownbug.rb: fix to use flunk.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-14 09:45:46 +00:00
akr 7d7125e7b4 fix a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-14 09:35:18 +00:00
akr b866ecbc42 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-12 16:42:43 +00:00
matz f2707db2dc * string.c (Init_String): sym_match arity spec was wrong. a patch
from Hiroyuki Iwatsuki <don at na.rim.or.jp> in [ruby-dev:32957].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-07 10:12:45 +00:00
matz 4d6c034752 add test_knownbug [ruby-core:14813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-07 10:01:34 +00:00
matz 48db39e355 add test_knowbug [ruby-core:14813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-07 07:07:44 +00:00
matz fa21f1b751 add test_knonbug
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-07 01:56:16 +00:00
akr 7967e3e2f4 add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-05 15:40:17 +00:00
ryan 37d1059f49 Added known bug from ruby-core:14537
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-03 11:26:10 +00:00
ko1 1421b85ea2 * bootstraptest/test_eval.rb, test_knownbug.rb: move a fixed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-03 10:48:35 +00:00
matz 5e22f59982 * bootstraptest/test_knownbug.rb: more portable way
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-31 16:34:30 +00:00
matz e460d4f757 * bootstraptest/test_knownbug.rb: shut up syntax error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-31 16:32:24 +00:00
nobu de3f2adb53 * string.c (rb_str_resize): embeds if ptr is null. [ruby-dev:32819]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-31 14:27:20 +00:00
usa 735f064df3 * bootstraptest/test_knownbug.rb: support DOSISH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-30 10:23:53 +00:00
akr 439e388089 add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-29 04:27:39 +00:00
ko1 633df8de16 * compile.c (iseq_compile_each): fix stack consistency error
(break is compiled to throw instead of jump insn).
  these problems are reported by Yusuke ENDOH <mame AT tsg.ne.jp>
* bootstraptest/test_knownbug.rb, test_syntax.rb: move fixed test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 12:37:16 +00:00
matz 3878b30881 * io.c (appendline): move RS comparison to rb_io_getline_1().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 09:52:52 +00:00
akr 305c42739f add tests reported by Yusuke ENDOH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 09:39:10 +00:00
akr ed7b25a854 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 07:27:15 +00:00
ko1 7ad94af99b * bootstraptest/test_knownbug.rb, test_literal.rb: move fixed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 21:26:02 +00:00
akr edb8eee236 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 19:03:09 +00:00
ko1 105e00bdd7 * compile.c (iseq_compile_each): add a "pop" insn after break
to fix stack consistency error.  [ruby-core:14385]
* bootstraptest/test_syntax.rb: add tests for above.
* bootstraptest/test_knownbug.rb: remove fixed bug.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 17:41:29 +00:00
akr 71787f8ec2 add a test for [ruby-core:14385] reported by Frederick Cheung.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 15:19:44 +00:00
nobu 68a66351a7 * load.c (rb_feature_p): returns loading path name too.
* load.c (search_required): returns path too if feature is being
  loaded.  [ruby-dev:32048]  [TODO: refactoring]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 07:53:50 +00:00
akr c534670da1 move the test for [ruby-core:14288].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 15:06:14 +00:00
akr 0ef8ed93bc add a test for [ruby-dev:32048].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 06:57:52 +00:00
nobu e3897c538c * string.c (sym_call): use exact argument array interface.
[ruby-core:14279]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 02:26:45 +00:00
akr a072f94fbe add a test for [ruby-core:14288].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 01:36:54 +00:00
akr a84103ce60 add a test for [ruby-core:14279].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 00:15:23 +00:00
ko1 91c6c2c170 * io.c: write() should be in blocking region.
* bootstraptest/test_io.rb, test_knownbug.rb: move a fixed test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 09:43:49 +00:00
ko1 f40a94a9cd * bootstraptest/featurebug.rb: added.
* bootstraptest/test_knownbug.rb: move a feature bug.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 08:29:33 +00:00
ko1 6cbc9ac208 * 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
2007-12-21 08:27:14 +00:00
akr 328e6a02bf add test for [ruby-dev:32566].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 06:38:12 +00:00
ko1 314bef7ef1 * insnhelper.ci, vm.c, vm_core.h: change interface of
vm_invoke_block() to specify block ptr.  [ruby-talk:266422]
* cont.c, eval_jump.ci, insns.def, proc.c, signal.c, thread.c:
  apply above change.
* bootstraptest/test_knownbug.rb: move fixed bug.
* bootstraptest/test_block.rb: ditto. and add a test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 07:07:35 +00:00
ko1 5485df3e10 * compile.c (iseq_compile_each): add pop after throw as return.
* bootstraptest/test_knownbug.rb, test_syntax.rb: move resolved test.
* vm_core.h, iseq.c, compile.h: add debug output code.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 21:39:08 +00:00
ko1 def4a99af2 * bootstraptest/test_knownbug.rb, test_block.rb:
move fixed bug.
* bootstraptest/test_m17n.rb: added.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 08:14:21 +00:00
ko1 9bd91ea3b0 * eval.c (errinfo_place): skip if error is Fixnum. [ruby-dev:32608]
* bootstraptest/test_exception.rb, test_known_bug.rb: move fixed bug.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 08:02:03 +00:00
nobu 63fabd365a * compile.c (iseq_compile_each): fix for segfault. [ruby-dev:31372]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 14:53:55 +00:00
ko1 1f75a4e700 * bootstraptest/test_knownbug.rb: add issues.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 11:58:28 +00:00
akr 0c19240983 more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 05:02:24 +00:00
akr 50a0a86471 more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 14:59:11 +00:00
matz ea1b9d58b9 * string.c (rb_str_index): check if substring is broken.
* string.c (rb_str_rindex): ditto.

* string.c (rb_str_succ): should carry over.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 09:08:27 +00:00
akr 22456e709d more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-16 02:17:42 +00:00