1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby
ko1 f1d4e8b3b3 * method.h: add VM_METHOD_TYPE_ALIAS rb_method_definition_t::type
to fix [Bug #11173].
  Now, inter class/method alias creates new method entry
  VM_METHOD_TYPE_ALIAS, which has an original method entry.
* vm_insnhelper.c (find_defiend_class_by_owner): added.
  Search corresponding defined_class from owner class/module.
* vm_method.c (rb_method_entry_get_without_cache): return me->klass
  directly for defined_class.
  Now, no need to check me->klass any more.
* vm_method.c (method_entry_set0): separated from method_entry_set().
* vm_method.c (rb_alias): make method entry has VM_METHOD_TYPE_ALIAS.
* vm_method.c (release_method_definition): support VM_METHOD_TYPE_ALIAS.
* vm_method.c (rb_hash_method_definition): ditto.
* vm_method.c (rb_method_definition_eq): ditto.
* vm_method.c (release_method_definition): ditto.
* vm_insnhelper.c (vm_call_method): ditto.
* vm_insnhelper.c (vm_method_cfunc_entry): ditto.
* vm_eval.c (vm_call0_body): ditto.
* gc.c (mark_method_entry): ditto.
* proc.c (method_def_iseq): ditto.
* proc.c (method_cref): ditto.
* proc.c (rb_method_entry_min_max_arity): ditto.
* test/ruby/test_alias.rb: add tests.
* test/ruby/test_module.rb: fix a test to catch up current behavior.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-30 18:45:28 +00:00
..
enc
allpairs.rb
beginmainend.rb suppress warnings 2015-03-09 06:51:20 +00:00
lbtest.rb
marshaltestlib.rb
sentence.rb
test_alias.rb * method.h: add VM_METHOD_TYPE_ALIAS rb_method_definition_t::type 2015-05-30 18:45:28 +00:00
test_argf.rb
test_arity.rb
test_array.rb array.c: reduce to_ary call 2015-01-25 03:04:10 +00:00
test_assignment.rb compile.c: disallow private readers 2015-04-30 10:51:13 +00:00
test_autoload.rb test_autoload.rb: use class_eval 2015-05-18 09:41:21 +00:00
test_backtrace.rb test_backtrace.rb: add tests 2015-02-01 09:40:09 +00:00
test_basicinstructions.rb
test_beginendblock.rb test_beginendblock.rb: assert_in_out_err 2015-03-09 05:47:05 +00:00
test_bignum.rb numeric.c: Bignum 0 is not positive 2015-05-19 04:10:12 +00:00
test_call.rb
test_case.rb
test_class.rb * fix namespace issue on singleton class expressions. [Bug #10943] 2015-03-06 12:24:58 +00:00
test_clone.rb
test_comparable.rb * compar.c (cmp_equal): no more error hiding for Comparable#==. 2015-02-11 19:33:46 +00:00
test_complex.rb * complex.c (f_complex_polar): simple bug reproduced only when y is 2015-05-22 11:57:43 +00:00
test_complex2.rb
test_complexrational.rb
test_condition.rb
test_const.rb
test_continuation.rb
test_defined.rb
test_dir.rb test_dir.rb: recursive globbing 2015-04-01 07:53:16 +00:00
test_dir_m17n.rb dir.c: same encoding to the pattern 2015-02-25 06:59:39 +00:00
test_econv.rb
test_encoding.rb
test_enum.rb * enum.c (enum_grep_v, grep_i, grep_iter_i, Init_enum): 2015-05-14 10:42:42 +00:00
test_enumerator.rb
test_env.rb hash.c: check env vars encoding 2015-04-19 01:42:57 +00:00
test_eval.rb
test_exception.rb
test_extlibs.rb * ext/json/*, test/json/*: Reverted r50231. Because it's not works with 2015-04-12 08:36:37 +00:00
test_fiber.rb
test_file.rb test_file.rb: just skip assertion 2015-02-20 08:19:48 +00:00
test_file_exhaustive.rb * test/lib/envutil.rb (File.mkfifo): Defined using mkfifo command. 2015-04-13 13:46:10 +00:00
test_fixnum.rb numeric.c: Numeric#positive? and Numeric#negative? 2015-05-17 06:01:47 +00:00
test_flip.rb
test_float.rb numeric.c: Numeric#positive? and Numeric#negative? 2015-05-17 06:01:47 +00:00
test_fnmatch.rb
test_gc.rb test_gc.rb: read binary 2015-02-05 08:19:44 +00:00
test_hash.rb
test_ifunless.rb
test_integer.rb
test_integer_comb.rb
test_io.rb * test/lib/envutil.rb (File.mkfifo): Defined using mkfifo command. 2015-04-13 13:46:10 +00:00
test_io_m17n.rb
test_iseq.rb iseq.c: check srouce type 2015-05-19 09:54:44 +00:00
test_iterator.rb
test_keyword.rb * vm_args.c: protect value stack from calling other methods 2015-04-06 07:14:28 +00:00
test_lambda.rb * test/ruby/test_lambda.rb: Fix typo yeild -> yield 2015-03-15 17:53:01 +00:00
test_lazy_enumerator.rb enum.c: Fixnum only 2015-02-28 09:09:18 +00:00
test_literal.rb
test_m17n.rb
test_m17n_comb.rb * test/ruby/test_m17n_comb.rb: test_str_crypt split into strict 2015-04-21 18:44:10 +00:00
test_marshal.rb marshal.c: class name encoding 2015-04-16 14:28:29 +00:00
test_math.rb * math.c (math_log1, math_log2, math_log10): refactoring 2015-03-16 08:39:29 +00:00
test_metaclass.rb
test_method.rb test_method.rb: add assertion 2015-05-21 11:28:55 +00:00
test_mixed_unicode_escapes.rb
test_module.rb * method.h: add VM_METHOD_TYPE_ALIAS rb_method_definition_t::type 2015-05-30 18:45:28 +00:00
test_not.rb
test_notimp.rb
test_numeric.rb numeric.c: Numeric#positive? and Numeric#negative? 2015-05-17 06:01:47 +00:00
test_object.rb * test/ruby/test_object.rb: add tests for Kernel#String and Kernel#Array. 2015-04-22 03:48:23 +00:00
test_objectspace.rb
test_optimization.rb
test_pack.rb
test_parse.rb test_parse.rb: move assertions 2015-05-22 12:10:52 +00:00
test_path.rb
test_pipe.rb
test_primitive.rb
test_proc.rb test_proc.rb: test_curry_binding 2015-03-29 02:47:36 +00:00
test_process.rb process.c: do not discard status 2015-05-22 10:42:09 +00:00
test_rand.rb
test_range.rb range.c: covered for linear objects 2015-05-03 01:02:15 +00:00
test_rational.rb numeric.c: Numeric#positive? and Numeric#negative? 2015-05-17 06:01:47 +00:00
test_rational2.rb
test_readpartial.rb
test_refinement.rb * vm_method.c (rb_alias): should resolve refined methods. 2015-05-26 13:16:18 +00:00
test_regexp.rb re.c: RMatch::regexp can be nil 2015-02-21 10:51:52 +00:00
test_require.rb fix test failures introduced in r50494 2015-05-16 15:02:41 +00:00
test_rubyoptions.rb * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_command_line_glob_with_dir): 2015-03-05 23:03:35 +00:00
test_rubyvm.rb
test_settracefunc.rb * vm.c (vm_exec): check other events when RETURN is thrown. 2015-04-10 08:29:30 +00:00
test_signal.rb signal.c: nil for invalid signum 2015-03-02 04:04:30 +00:00
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_string.rb * string.c (rb_str_crypt): Raise ArgumentError when 2015-05-10 02:49:01 +00:00
test_stringchar.rb
test_struct.rb
test_super.rb
test_symbol.rb test_parse.rb: move assertions 2015-05-22 12:10:52 +00:00
test_syntax.rb parse.y: check NTH_REF range 2015-05-29 05:39:03 +00:00
test_system.rb
test_thread.rb thread.c: class name encoding 2015-04-16 08:29:21 +00:00
test_threadgroup.rb
test_time.rb * time.c: zone encoding should be US-ASCII if all 7-bits. Fix r46907. 2015-02-22 22:26:55 +00:00
test_time_tz.rb * time.c: zone encoding should be US-ASCII if all 7-bits. Fix r46907. 2015-02-22 22:26:55 +00:00
test_trace.rb
test_transcode.rb
test_undef.rb
test_unicode_escape.rb
test_variable.rb
test_weakmap.rb
test_whileuntil.rb
test_yield.rb
ut_eof.rb