1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
normal 9581954a96 mostly fix rb_iseq_load
This allows reporters commenters of [Feature #8543] to load
instruction sequences directly.  Some test cases are still failing
but documented in test/-ext-/iseq_load/test_iseq_load.rb.

* compile.c (rb_iseq_build_from_exception): entry->sp is unsigned
  (iseq_build_callinfo_from_hash): account for kw_arg
  (iseq_build_from_ary_body): update for r35459
  (CHECK_STRING, CHECK_INTEGER): remove unused checks
  (int_param): new function for checking new `params' hash
  (iseq_build_kw): new function for loading rb_iseq_param_keyword
  (rb_iseq_build_from_ary): account for `misc' entry and general
   structure changes
  [Feature #8543]
* iseq.c (CHECK_HASH): new macro (for `misc' and `param' entries)
  (iseq_load): account for `misc' and `params' hashes
  (iseq_data_to_ary): add final opt to arg_opt_labels,
   fix kw support, account for unsigned entry->sp
* ext/-test-/iseq_load/iseq_load.c: new ext for test
* ext/-test-/iseq_load/extconf.rb: ditto
* test/-ext-/iseq_load/test_iseq_load.rb: new test

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-03 22:16:58 +00:00
..
-ext- mostly fix rb_iseq_load 2014-12-03 22:16:58 +00:00
base64
benchmark Ruby can delay arbitrarily because Ruby is not a realtime system, 2014-09-02 15:47:53 +00:00
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
csv * test/csv/test_row.rb: Added some missing tests in CSV. 2014-09-05 09:34:38 +00:00
date test_date.rb: nonsense assertion 2014-09-10 08:25:05 +00:00
dbm * test/ruby/test_object.rb: Specify an exception class for rescue clause. 2014-11-11 15:28:17 +00:00
digest Make Digest() thread-safe. 2014-10-31 13:21:51 +00:00
drb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
dtrace * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
erb fix encoding spec 2014-07-25 07:55:58 +00:00
etc win32.c: login name encoding 2014-11-10 08:24:36 +00:00
fiddle * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
fileutils * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
gdbm * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
io * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
irb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
json * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
lib envutil.rb: skip if load failed 2014-11-27 03:42:32 +00:00
logger * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
matrix test_vector.rb: fix exception class 2014-11-19 23:57:56 +00:00
minitest * test/minitest/test_minitest_unit.rb: removed obsoleted condition 2014-08-09 01:28:50 +00:00
misc test_ruby_mode.rb: trivial refinement 2014-08-16 06:22:48 +00:00
mkmf * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
monitor * test/monitor/test_monitor.rb: Use assert_join_threads. 2014-11-13 13:04:43 +00:00
net add test for r48563 2014-11-26 08:22:27 +00:00
nkf
objspace * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
open-uri * test/open-uri: Test server log in server thread. 2014-11-09 14:01:20 +00:00
openssl * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
optparse
ostruct
pathname * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
psych * ext/psych/lib/psych/visitors/to_ruby.rb: support objects that are 2014-12-01 21:35:11 +00:00
rake * lib/rake: Update to rake 10.4.0 2014-11-25 07:03:36 +00:00
rdoc * lib/rdoc.rb, lib/rdoc, test/rdoc: Update to RDoc 4.2.0.alpha(21b241a) 2014-09-11 01:03:22 +00:00
readline * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
resolv * lib/resolv.rb: fall back if canonicalization fails. 2014-11-21 20:04:27 +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: preserve tSTRING_CONTENT results 2014-12-01 21:32:04 +00:00
rss * test/rinda/test_rinda.rb: removed useless assignment variables. 2014-08-29 08:37:39 +00:00
ruby iseq.c: avoid segfault on incomplete iseq 2014-12-03 22:03:59 +00:00
rubygems * lib/rubygems/*, test/rubygems/*: Update to RubyGems 2.4.4 2014-11-17 03:55:02 +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 test/socket/test_unix.rb (TestSocket_UNIXSocket#test_too_long_path): sockaddr_un.sun_path in AIX is defined as char[1024], so "a" * 300 is not too long. "a" * 3000 would be enough. 2014-10-04 07:11:54 +00:00
stringio stringio.c: ASCII-8BIT StringIO rejects no encodings 2014-09-26 03:52:37 +00:00
strscan strscan.c: encoding in messages 2014-08-03 01:56:31 +00:00
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/generic.rb (URI::Generic.build): 2014-12-01 17:36:54 +00:00
webrick * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
win32ole test/win32ole/test_win32ole_variant.rb 2014-09-22 11:01:22 +00:00
xmlrpc * test/xmlrpc: Refine log test. 2014-11-09 09:36:33 +00:00
zlib zlib: GzipReader#rewind preserves ZSTREAM_FLAG_GZFILE 2014-08-30 23:53:28 +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 * test/test_open3.rb: Add a simple test for env hash on popen3. 2014-12-02 22:08:05 +00:00
test_pp.rb
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 * lib/set.rb (Set#replace): Check if an object given is enumerable 2014-08-06 11:28:21 +00:00
test_shellwords.rb
test_singleton.rb
test_syslog.rb test/test_syslog.rb (TestSyslog#test_log): In AIX, each output line of LOG_PERROR to stderr has an additional empty line appended, so skip that line. 2014-10-04 07:35:43 +00:00
test_tempfile.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_time.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_timeout.rb
test_tmpdir.rb
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/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00