1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
ko1 d84f9b1694 * fix namespace issue on singleton class expressions. [Bug #10943]
* vm_core.h, method.h: remove rb_iseq_t::cref_stack. CREF is stored
  to rb_method_definition_t::body.iseq_body.cref.
* vm_insnhelper.c: modify SVAR usage.
  When calling ISEQ type method, push CREF information onto method
  frame, SVAR located place. Before this fix, SVAR is simply nil.
  After this patch, CREF (or NULL == Qfalse for not iseq methods)
  is stored at the method invocation.
  When SVAR is requierd, then put NODE_IF onto SVAR location,
  and NDOE_IF::nd_reserved points CREF itself.
* vm.c (vm_cref_new, vm_cref_dump, vm_cref_new_toplevel): added.
* vm_insnhelper.c (vm_push_frame): accept CREF.
* method.h, vm_method.c (rb_add_method_iseq): added. This function
  accepts iseq and CREF.
* class.c (clone_method): use rb_add_method_iseq().
* gc.c (mark_method_entry): mark method_entry::body.iseq_body.cref.
* iseq.c: remove CREF related codes.
* insns.def (getinlinecache/setinlinecache): CREF should be cache key
  because a different CREF has a different namespace.
* node.c (rb_gc_mark_node): mark NODE_IF::nd_reserved for SVAR.
* proc.c: catch up changes.
* struct.c: ditto.
* insns.def: ditto.
* vm_args.c (raise_argument_error): ditto.
* vm_eval.c: ditto.
* test/ruby/test_class.rb: add a test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-06 12:24:58 +00:00
..
-ext- test_rubyoptions.rb: use assert_in_out_err 2015-03-03 08:19:43 +00:00
base64 * lib/base64.rb: make urlsafe mode user-friendly. 2015-02-13 12:31:30 +00:00
benchmark
bigdecimal * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
cgi * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
coverage * ext/coverage/coverage.c: Add Coverage.peek_result. Allows you to 2015-02-13 15:53:47 +00:00
csv
date
dbm
digest
drb drbtest.rb: refactor 2015-02-12 02:47:29 +00:00
dtrace * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
erb erb: suppress warnings 2014-12-12 19:59:22 +00:00
etc test_etc.rb: relax comparisons 2015-01-10 07:15:12 +00:00
excludes TestException.rb: exclude stack overflow tests 2015-02-09 01:28:32 +00:00
fiddle * test/fiddle/test_handle.rb: fix syntax. 2015-01-05 18:11:32 +00:00
fileutils * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
gdbm * test/gdbm/test_gdbm.rb: Added test for each_key called without a block. 2014-12-17 01:50:14 +00:00
io io/wait: fix return value for buffered read 2015-03-01 21:03:22 +00:00
irb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
json generator.c: fix infinite recursion 2015-02-11 02:01:36 +00:00
lib envutil.rb: no need to sleep 2015-03-04 01:22:01 +00:00
logger * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
matrix * lib/matrix.rb: Add Vector#round. Patch by Jordan Stephens. 2015-03-05 23:45:42 +00:00
minitest unit.rb: no insult method 2015-01-04 02:04:31 +00:00
misc
mkmf mkmf/base.rb: clean up tmpdir 2015-03-03 17:01:13 +00:00
monitor * test/monitor/test_monitor.rb: Use assert_join_threads. 2014-11-13 13:04:43 +00:00
net * test/net/ftp/test_ftp.rb (create_ftp_server): set SO_OOBINLINE 2015-03-02 03:07:18 +00:00
nkf
objspace * ext/objspace/objspace.c: ObjectSpace.memsize_of(obj) returns 2014-12-15 08:54:07 +00:00
open-uri skip old OpenSSL 2014-12-13 07:12:56 +00:00
openssl test_cipher.rb: ignore wrap mode erros 2015-02-13 02:06:31 +00:00
optparse
ostruct Revert GH-808 2015-01-08 07:07:59 +00:00
pathname * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
psych * ext/psych/lib/psych.rb: bump psych version. 2015-02-17 18:17:46 +00:00
rake * lib/rake: Update to rake (9237e74), typo fix and remove needless 2015-02-27 11:55:47 +00:00
rdoc rdoc/text.rb: fix infinite loop 2015-01-12 09:01:28 +00:00
readline readline.c: initialize before rl_refresh_line 2015-01-14 06:43:50 +00:00
resolv resolv.rb: fix equality 2015-02-17 02:47:19 +00:00
rexml * test/rexml/test_document.rb: Indent. 2014-11-15 12:29:21 +00:00
rinda * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
ripper parse.y: fix f_label result 2015-01-04 12:32:54 +00:00
rss
ruby * fix namespace issue on singleton class expressions. [Bug #10943] 2015-03-06 12:24:58 +00:00
rubygems * lib/rubygems: Update to RubyGems 2.4.6 and HEAD(800f2e6). 2015-02-27 13:00:45 +00:00
scanf
sdbm * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
shell * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
socket * io.c (rb_io_close_m): Don't raise when the IO object is closed. 2015-01-15 15:26:03 +00:00
stringio
strscan
syslog
testunit * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
thread * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
uri * lib/uri/mailto.rb: raising URI::InvalidComponentError instead 2015-01-14 09:06:13 +00:00
webrick * test/webrick/test_filehandler.rb: on vboxsf (on VirtualBox 2015-03-06 09:22:21 +00:00
win32ole * test/win32ole/test_word.rb: use skip method to skip test. 2015-02-10 22:54:39 +00:00
xmlrpc
zlib * io.c (rb_io_close_m): Don't raise when the IO object is closed. 2015-01-15 15:26:03 +00:00
runner.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_abbrev.rb
test_cmath.rb
test_delegate.rb
test_find.rb
test_ipaddr.rb
test_mathn.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_mutex_m.rb
test_open3.rb Add a test. 2015-01-08 15:38:13 +00:00
test_pp.rb * test/test_pp.rb (PPTestModule::PPFileStatTest): test for r48719. 2014-12-05 19:48:15 +00:00
test_prettyprint.rb
test_prime.rb
test_pstore.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_pty.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_rbconfig.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb * test/test_tempfile.rb: use assert_file for more descriptive message. 2015-01-04 04:41:04 +00:00
test_time.rb add tests for strptime("%s.%N"). 2015-03-01 00:13:11 +00:00
test_timeout.rb
test_tmpdir.rb Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616]. 2014-12-20 08:58:30 +00:00
test_tracer.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_tsort.rb * lib/tsort.rb: Returns an enumerator if no block is given. 2014-11-26 10:46:50 +00:00
test_unicode_normalize.rb test_unicode_normalize.rb: skip only once 2014-11-11 23:54:45 +00:00
test_weakref.rb test/test_weakref.rb: increase timeout [Bug #10618] 2014-12-19 20:20:33 +00:00
test_win32api.rb * ext/win32/Win32API.rb (initialize): accept both a string and an array 2015-02-25 13:08:01 +00:00