akr
24421c835d
* bootstraptest/runner.rb (assert_normal_exit): add :timeout option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-17 12:27:34 +00:00
nobu
09205cf2c3
* vm.c (vm_exec): reset thread state before starting vm loop.
...
[ruby-core:28129]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-09 19:06:39 +00:00
akr
dd4537ad99
* bootstraptest/runner.rb: sort test files.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-07 14:09:43 +00:00
mame
3a9ce187de
* vm_insnhelper.c (vm_throw): fixed infinite loop. [ruby-core:27969]
...
(re-commit of r26522 since forgot to add a change, sorry)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-31 12:41:47 +00:00
usa
0676ac37be
* bootstraptest/test_thread.rb: please please please remember that there are
...
platforms that do not support fork.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-11 07:47:29 +00:00
nobu
4ba0fe5fd3
* thread_pthread.c (native_mutex_reinitialize_atfork): release and
...
re-acquire the lock at re-initialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-10 06:49:15 +00:00
nobu
770b05dd9b
* parse.y (dyna_pop_gen): pop dvars. [ruby-dev:39861]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-09 16:12:57 +00:00
shugo
4cec4edd0b
fixed tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 07:09:21 +00:00
nobu
9b02e165d3
* parse.y (dyna_push_gen, dyna_pop_gen): adjust local vtable level
...
for the case of syntax errors in method name or argument inside
do block. [ruby-core:26961]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 21:16:31 +00:00
usa
d3eb005737
* bootsraptest/test_io.rb: skip the test of io/nonblock on Windows.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 04:09:59 +00:00
usa
f6fbdf261e
* bootstraptest/test_thread.rb: propagate the exception within a thread to
...
outer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-24 01:30:00 +00:00
usa
1968717136
* test_thread.rb: DO NOT USE FORK WITHOUT RESCUE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-19 00:56:44 +00:00
nobu
748fe216c2
* thread.c (rb_thread_atfork_internal): reinitialize global lock
...
at fork to get rid of deadlock. based on the patch from Hongli
Lai in [ruby-core:26783]. [ruby-core:26361]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 09:25:11 +00:00
mame
31c0e3385f
* thread.c (thread_cleanup_func): delete locking_mutex when thread
...
object become dummy because of fork. [ruby-core:26744]
[ruby-core:26745]
* bootstraptest/test_thread.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 15:10:49 +00:00
nobu
9bcccca47a
* bootstraptest/test_gc.rb: added tests based on [ruby-dev:39484]
...
from wanabe <s.wanabe AT gmail.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 09:42:20 +00:00
nobu
a97e80ba74
* tool/instruction.rb (make_header_prepare_stack): check stack
...
overflow. [ruby-core:25714]
* tool/instruction.rb (make_footer_stack_val): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 02:28:08 +00:00
nobu
2620a84070
* bootstraptest/test_thread.rb: just check for normal exit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-11 12:06:34 +00:00
nobu
fb03cb8275
* parse.y (literal_concat_gen): concat body from dstr instead of
...
nd_next. [ruby-core:25284]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-03 08:57:28 +00:00
nobu
b6cf785119
* vm.c (collect_local_variables_in_env): skips internal variables.
...
[ruby-core:25125]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 03:37:08 +00:00
akr
7c2d363bae
* bootstraptest/runner.rb (main): "usage" description updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-23 06:24:33 +00:00
akr
0ebb7c1c9b
* bootstraptest/runner.rb (Dir.mktmpdir): updated to latest.
...
(in_temporary_working_directory): temporary directory name changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-23 06:15:00 +00:00
nobu
c82826ce5f
* bootstraptest/test_exception.rb: test for [ruby-core:24767].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 04:01:08 +00:00
nobu
9997227af8
* bootstraptest/runner.rb: forgot shebang line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-03 07:20:14 +00:00
nobu
8b0fef3747
* bootstraptest/runner.rb: got rid of using /bin/sh.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-03 06:35:38 +00:00
nobu
59e5d0f177
* bootstraptest/runner.rb: made executable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-02 12:06:31 +00:00
nobu
6a26b59600
* parse.y (literal_concat0): tail can be nil. [ruby-dev:38980]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-02 12:04:43 +00:00
mame
3129ed327e
* parse.y (literal_concat_gen): NODE_DSTR was incorrectly handled as
...
NODE_STR. [ruby-dev:38968]
* bootstraptest/test_syntax.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-30 18:02:37 +00:00
mame
df878f78c5
* compile.c (iseq_compile_each): fix stack consistency error.
...
[ruby-core:24611]
* bootstraptest/test_method.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-30 12:42:41 +00:00
matz
300d60a8e4
* bootstraptest/test_io.rb: block write may block for long time.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-21 16:36:41 +00:00
akr
b205b5e7b6
fix tests for load_path.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-22 07:28:33 +00:00
ko1
0cdfbc9446
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-07 23:59:58 +00:00
nobu
f4a0a73175
* variable.c (rb_autoload_load): checks if iv_tbl is valid.
...
[ruby-dev:38456]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-15 06:15:14 +00:00
nobu
d222c7533c
* bootstraptest/test_io.rb: test for [ruby-dev:38131].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-26 09:44:35 +00:00
nobu
5f47ed9b59
* file.c (file_load_ok): checks if regular file. [ruby-dev:38097]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 06:49:43 +00:00
usa
4176051753
* test_fork.rb: no need to test if fork(2) is not implemented.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 05:02:21 +00:00
usa
3eff6d398b
* test_thread.rb: broken test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 05:01:03 +00:00
mame
c43236eaf7
* bootstraptest/test_thread.rb: fix for environment where fork is not
...
available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-23 16:24:46 +00:00
mame
c55dd9b7d8
* thread.c (thread_cleanup_func): unlock all locked mutexes even when
...
forking. [ruby-core:22269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-23 16:20:06 +00:00
nobu
1e51a7b2c6
* vm_eval.c (method_missing): should not pop cfp if missing method
...
is method_missing. [ruby-core:22298]
* vm_eval.c (rb_raise_method_missing): new function to directly
raise NoMethodError.
* vm_insnhelper.c (vm_call_method): fixed the case method_missing
is missing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 01:47:11 +00:00
knu
fd2b650d06
* bootstraptest/runner.rb: Use RUBY_DESCRIPTION if defined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-18 06:27:47 +00:00
nobu
e5edfbf207
* bootstraptest/test_fork.rb: test for [ruby-core:22158]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-18 01:49:17 +00:00
ko1
c9e4dc308f
* compile.c: fix to add "ensure" codes across "while" clause
...
before "return" expression. [ruby-dev:37967]
* bootstraptest/test_flow.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-16 20:54:58 +00:00
nobu
6b7dbd3e31
* insns.def (defineclass): try to autoload const to be overridden.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-12 15:48:44 +00:00
akr
c77f323088
* bootstraptest/runner.rb: refine success message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-04 12:57:17 +00:00
akr
21675bb6a7
reduce test time.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-02 08:08:52 +00:00
nobu
132d0624ec
* variable.c (rb_const_get_0), vm_insnhelper.c (vm_get_ev_const):
...
avoids infinite self recursion autoload. [ruby-core:21696]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31 20:19:44 +00:00
ko1
a3a45fafa3
* vm.c (rb_vm_inc_const_missing_count, ruby_vm_const_missing_count):
...
added.
* vm_insnhelper.h: ditto.
* variable.c (rb_const_get_0), insns.def: Constants should not be
cached if const_missing is called. [ruby-core:21059] [Bug #967 ]
* bootstraptest/test_class.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-15 15:31:43 +00:00
mame
f35f46a9f1
* bootstraptest/test_proc.rb: suppress error message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-02 13:20:46 +00:00
ko1
bd96f1fe70
* eval.c (get_errinfo): return th->errinfo value
...
if normal errinfo place (dynamic local viriable) is not found.
fixes Bug #732 [ruby-dev:37046].
* bootstraptest/test_proc.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 04:45:28 +00:00
ko1
597220ef0c
* vm.c (Init_VM): create and define TOPLEVEL_BINDING at first.
...
* vm.c (vm_set_main_stack, rb_iseq_eval_main): added.
* parse.y (rb_parser_compile_file): fix to check parse_in_eval flag.
* eval.c (ruby_exec_node): use rb_iseq_eval_main()
instead of rb_iseq_eval().
* iseq.c (rb_iseq_new_main), vm_core.h: added.
main script (specified by -e or script name) should be run
under TOPLEVEL_BINDING using Kernel#eval. Above changes
simulate Kernel#eval behaviour. [ruby-dev:37240]
* compile.c (make_name_for_block): skip iseq except block type.
this fix is needed for [ruby-dev:37240], and also fixes
[ruby-dev:35392].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 01:15:56 +00:00