ruby/test
ko1 4a4a702e61 * vm_trace.c, vm_core.h: simplify tracing mechanism.
(1) add rb_hook_list_t data structure which includes
  hooks, events (flag) and `need_clean' flag.
  If the last flag is true, then clean the hooks list.
  In other words, deleted hooks are contained by `hooks'.
  Cleanup process should run before traversing the list.
  (2) Change check mechanism
  See EXEC_EVENT_HOOK() in vm_core.h.
  (3) Add `raw' hooks APIs
  Normal hooks are guarded from exception by rb_protect().
  However, this protection is overhead for too simple
  functions which never cause exceptions.  `raw' hooks
  are executed without protection and faster.
  Now, we only provide registration APIs.  All `raw'
  hooks are kicked under protection (same as normal hooks).
* include/ruby/ruby.h: remove internal data definition and
  macros.
* internal.h (ruby_suppress_tracing), vm_trace.c: rename
  ruby_suppress_tracing() to rb_suppress_tracing()
  and remove unused function parameter.
* parse.y: fix to use renamed rb_suppress_tracing().
* thread.c (thread_create_core): no need to set RUBY_VM_VM.
* vm.c (mark_event_hooks): move definition to vm_trace.c.
* vm.c (ruby_vm_event_flags): add a global variable.
  This global variable represents all of Threads and VM's
  event masks (T1#events | T2#events | ... | VM#events).
  You can check the possibility kick trace func or not
  with ruby_vm_event_flags.
  ruby_vm_event_flags is maintained by vm_trace.c.
* cont.c (fiber_switch, rb_cont_call): restore tracing status.
  [Feature #4347]
* test/ruby/test_continuation.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-16 11:41:24 +00:00
..
-ext- test_printf.rb: need to be infected 2012-08-16 02:52:09 +00:00
base64 * pack.c (pack_pack, pack_unpack): 'm0' format (base64) complies with 2008-09-25 12:24:54 +00:00
benchmark * lib/benchmark.rb: Fix Benchmark.benchmark output with an empty 2012-07-18 03:56:58 +00:00
bigdecimal Add a test: BigDecimal("0").div(BigDecimal("Infinity")). 2012-05-11 14:03:38 +00:00
cgi Suppress warnings. 2012-08-14 06:52:41 +00:00
coverage * thread.c (update_coverage): skip coverage count up if the current 2011-08-23 15:44:26 +00:00
csv * test/csv/test_features.rb: add require for Tempfile. 2012-07-07 14:14:54 +00:00
date uncommented some tests 2012-08-04 22:07:42 +00:00
dbm add a test. 2012-02-19 14:44:36 +00:00
digest ext/digest/digest.c (hexencode_str_new): return an ASCII string 2012-08-01 13:30:51 +00:00
dl * test/dl/test_func.rb (test_qsort1, test_qsort2): use TYPE_SIZE_T 2012-06-13 13:52:04 +00:00
drb Kernel#inspect: improve consistency and do not call #to_s. 2012-08-15 11:50:01 +00:00
erb * test/erb/test_erb.rb (test_html_escape): add assertions for the 2012-08-14 07:28:43 +00:00
etc * test/etc/test_etc.rb (TestEtc#test_getpwuid): `s' is never set to nil. 2012-08-06 02:20:47 +00:00
fiddle * ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t 2012-02-25 05:47:16 +00:00
fileutils * test/fileutils/test_fileutils.rb: add test for FileUtils#uptodate? 2012-07-16 08:15:08 +00:00
gdbm Suppress warnings. 2012-07-25 06:49:35 +00:00
io * ext/io/console/console.c (set_rawmode): clear ECHOE and ECHOK 2012-03-06 01:11:47 +00:00
irb * test/irb/test_completion.rb: skip if cannot load irb/completion 2012-01-30 01:39:52 +00:00
json * ext/json: Merge JSON 1.7.1. 2012-05-07 16:00:49 +00:00
logger test: why believe source directories are writable always? 2012-05-08 06:49:59 +00:00
matrix * test/matrix/test_matrix.rb: remove obsolete test [ruby-core:37714] 2011-07-01 22:25:32 +00:00
minitest Imported minitest 3.2.0 (r7598). Reviewed by drbrain 2012-07-11 23:52:04 +00:00
misc Run tests only for emacs 23+. 2011-06-15 03:28:47 +00:00
mkmf test_framework.rb: show mkmf.log on failure 2012-08-01 22:29:58 +00:00
monitor * lib/monitor.rb (wait): supported timeout. 2010-02-06 12:31:52 +00:00
net Refix r36678: switch with zlib and check content-encoding. 2012-08-10 10:53:18 +00:00
nkf * ext/nkf/lib/kconv.rb (String#kconv): fix typo and update rdoc. 2010-12-07 11:47:39 +00:00
objspace * io.c (argf_type): make typed data. 2011-12-15 08:57:01 +00:00
open-uri * lib/net/http.rb: Net::HTTP now automatically detects and uses 2012-07-20 01:56:21 +00:00
openssl * test/openssl/test_config.rb (OpenSSL#test_constants): skip this 2012-08-09 03:42:00 +00:00
optparse * test/optparse/test_summary.rb (test_summary_containing_space): add 2012-04-25 16:36:14 +00:00
ostruct * hash.c, object.c, struct.c, lib/ostruct.rb: add to_h methods. 2012-04-24 03:46:55 +00:00
pathname * test/pathname/test_pathname.rb (test_binread): add assertion to 2012-02-09 14:44:10 +00:00
psych * lib/open-uri.rb: delete space. 2012-07-17 16:13:10 +00:00
rake * test/rake/test_rake_directory_task.rb 2011-11-28 13:28:26 +00:00
rdoc * lib/rdoc/parser.rb (RDoc.binary?): fix wrong regexp. 2012-05-03 22:20:26 +00:00
readline Skip on non UTF-8 locale. 2012-06-19 06:30:55 +00:00
resolv * test/net/http/test_https_proxy.rb 2012-02-02 15:55:07 +00:00
rexml Suppress warnings. 2012-07-23 21:37:39 +00:00
rinda * test/rinda/test_rinda.rb: fix sticks on some testsf problem 2012-04-21 06:10:21 +00:00
ripper * parse.y: added symbols and qsymbols productions for %i and %I 2012-07-24 18:10:35 +00:00
rss Suppress warnings. 2012-07-23 21:37:39 +00:00
ruby * vm_trace.c, vm_core.h: simplify tracing mechanism. 2012-08-16 11:41:24 +00:00
rubygems * lib/rubygems/platform.rb (Gem::Platform#initialize): Support pattern 2012-07-30 14:04:48 +00:00
scanf * test/scanf/test_scanf.rb (ScanfTests#each_test): yield in order. 2010-05-13 10:06:25 +00:00
sdbm * test/sdbm/test_sdbm.rb (test_s_open_error): doesn't support to avoid read 2010-05-27 05:47:21 +00:00
socket Show nd6 options and whether the packet is reached to the server or not. 2012-07-24 03:09:32 +00:00
stringio * io.c (io_readpartial): Document the output buffer parameter is 2012-04-18 23:48:27 +00:00
strscan avoid method redefinition. 2010-02-14 03:09:53 +00:00
syck Use Syck module after it is defined. 2012-06-29 13:12:36 +00:00
syslog * syslog/test_syslog_logger.rb: miss. 2012-08-06 02:11:58 +00:00
testunit * test/testunit/test_redefinition.rb: broken class/method names. 2012-07-25 01:01:59 +00:00
thread refine message for test_thr_kill. 2011-12-23 07:55:39 +00:00
uri * test/uri/test_generic.rb (URI#test_find_proxy): add tests with empty *_proxy env variables. 2012-07-22 16:55:55 +00:00
webrick * lib/webrick/server.rb (WEBrick::GenericServer#start): 2012-04-14 02:30:43 +00:00
win32ole * test/win32ole/test_win32ole_variant.rb: setting WIN32OLE.locale 2012-08-06 10:21:12 +00:00
xmlrpc skip OpenSSL dependent tests if not available 2012-04-23 13:48:41 +00:00
zlib * ext/zlib/zlib.c: Added streaming support to inflate processing. 2012-07-10 18:28:40 +00:00
inlinetest.rb * test/inlinetest.rb (InlineTest.in_progname): workaround for frozen 2008-06-27 12:19:11 +00:00
profile_test_all.rb property. 2010-10-29 23:50:57 +00:00
runner.rb runner.rb: no installed gems 2012-08-03 08:21:55 +00:00
test_cmath.rb Rerefix test introduced by r32307. 2011-06-30 03:31:01 +00:00
test_curses.rb * test/test_curses.rb: new file. 2012-02-23 13:27:29 +00:00
test_delegate.rb * lib/delegate.rb (Delegator#methods): Kernel#methods receives 2011-12-04 03:05:03 +00:00
test_find.rb * test/test_find.rb: skip some tests on Windows. 2010-05-25 07:03:31 +00:00
test_ipaddr.rb use require_relative. 2010-02-02 13:58:56 +00:00
test_mathn.rb Add test for r35265. 2012-04-08 23:05:08 +00:00
test_mutex_m.rb * lib/optparse.rb: suppress a warning. 2010-08-10 12:02:52 +00:00
test_open3.rb * test/test_open3.rb (TestOpen3#test_commandline): use simple 2010-04-30 12:40:40 +00:00
test_pp.rb Kernel#inspect: improve consistency and do not call #to_s. 2012-08-15 11:50:01 +00:00
test_prettyprint.rb wrap by a module. 2009-10-04 05:44:27 +00:00
test_prime.rb * test/syck/test_string.rb (Syck::TestString#test_non_binary_string): 2011-02-13 00:56:44 +00:00
test_pstore.rb use assert_equal, assert_match, and so on. 2012-05-07 01:23:07 +00:00
test_pty.rb * test/test_pty.rb: same as r29280, skip tests when PTY allocation 2012-03-19 06:08:44 +00:00
test_securerandom.rb Suppress warnings. 2012-07-25 06:49:35 +00:00
test_set.rb use require_relative. 2010-02-02 13:58:56 +00:00
test_shellwords.rb Forgot to commit the test part. 2012-01-13 06:10:37 +00:00
test_singleton.rb * test/test_singleton.rb: Add tests from lib/singleton.rb. Patch by 2011-05-17 18:15:10 +00:00
test_syslog.rb * test/test_syslog.rb (TestSyslog#test_log): Do not be too 2011-08-05 08:26:42 +00:00
test_tempfile.rb * test/test_tempfile.rb: simply ignore platform depedent testcases 2011-04-04 02:51:17 +00:00
test_time.rb * lib/time.rb (Time#xmlschema): use strftime specifiers instead of 2012-02-28 08:16:03 +00:00
test_timeout.rb * lib/timeout.rb (Timeout#timeout): propagate errors to the 2010-04-19 09:58:09 +00:00
test_tmpdir.rb * test/test_tmpdir.rb (TestTmpdir#test_world_writable): skip on Windows. 2012-03-14 07:42:30 +00:00
test_tracer.rb * lib/tracer.rb: Tracer.on only if required by -r command-line option. 2011-06-29 13:19:59 +00:00
test_tsort.rb * test/test_pp.rb: extract from lib/pp.rb. 2009-02-14 23:36:45 +00:00
test_weakref.rb more GCable 2012-03-14 02:29:48 +00:00
with_different_ofs.rb * test/with_different_ofs.rb (DifferentOFS): should not affect 2010-12-26 02:15:55 +00:00