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
NARUSE, Yui 4328f93f1b merge revision(s) 8743732621: [Backport #17581]
Fix backtrace to not skip frames with iseq without pc

	Previously, frames with iseq but no pc were skipped (even before
	the refactoring in 3b24b7914c).
	Because the entire backtrace was procesed before the refactoring,
	this was handled by using later frames instead.  However, after
	the refactoring, we need to handle those frames or they get
	lost.

	Keep two iteration counters when iterating, one for the desired
	backtrace size (so we generate the desired number of frames), and
	one for the actual backtrace size (so we don't process off the end
	of the stack).  When skipping over an iseq frame with no pc,
	decrement the counter for the desired backtrace, so it will
	continue to process the expected number of backtrace frames.

	Fixes [Bug #17581]
	---
	 test/ruby/test_backtrace.rb | 12 ++++++++++++
	 vm_backtrace.c              | 16 +++++++++-------
	 2 files changed, 21 insertions(+), 7 deletions(-)
2021-03-02 21:50:15 +09:00
..
enc support multi-run for test/ruby/enc/test_regex_casefold.rb 2020-01-29 13:08:40 +09:00
allpairs.rb
beginmainend.rb
bug-11928.rb
bug-13526.rb
lbtest.rb
marshaltestlib.rb
sentence.rb Fixed misspellings 2019-12-20 09:32:42 +09:00
test_alias.rb Merge pull request #2721 from jeremyevans/method-inspect-chain-alias-11188 2020-03-22 09:30:20 -07:00
test_argf.rb delete deprecated IO-like methods 2020-12-03 12:47:51 +09:00
test_arithmetic_sequence.rb test/ruby/test_arithmetic_sequence.rb: restore test_last_bug17218 2020-12-10 00:59:00 +09:00
test_arity.rb
test_array.rb Use category: :deprecated in warnings that are related to deprecation 2020-12-18 09:54:11 -08:00
test_assignment.rb Fixed misspellings 2019-12-20 09:32:42 +09:00
test_ast.rb Added NODE_SPECIAL_EXCESSIVE_COMMA info to ARGS of RubyVM::AbstractSyntaxTree. 2020-07-08 17:43:04 +09:00
test_autoload.rb fix for multi-run test. 2020-05-15 14:54:03 +09:00
test_backtrace.rb merge revision(s) 8743732621: [Backport #17581] 2021-03-02 21:50:15 +09:00
test_basicinstructions.rb support multi-run for ruby/test_basicinstructions.rb 2020-01-28 15:23:51 +09:00
test_beginendblock.rb
test_bignum.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_call.rb Dup splat array in certain cases where there is a block argument 2020-06-18 08:19:33 -07:00
test_case.rb
test_class.rb Fix singleton class cloning 2020-11-16 17:41:17 -05:00
test_clone.rb
test_comparable.rb Raise on end-exclusive ranges [Feature #14784] 2019-10-26 12:52:50 +09:00
test_complex.rb Fix assertion failed in Complex.polar without NDEBUG (#3551) 2020-09-16 19:27:16 +09:00
test_complex2.rb
test_complexrational.rb
test_condition.rb
test_const.rb refactoring: use Proc and Constant. 2020-01-29 00:54:05 +09:00
test_continuation.rb
test_default_gems.rb Skip test_validate_gemspec when tarball and git installed too 2019-11-23 01:57:19 +09:00
test_defined.rb merge revision(s) 8dfae85adb: [Backport #17575] 2021-02-02 15:49:51 +09:00
test_dir.rb dir.c: chdir conflict should raise only when called in different thread 2020-12-24 14:34:40 +09:00
test_dir_m17n.rb win32: Use UTF-8 as filesystem encoding [Feature #12654] 2020-12-20 18:34:04 +09:00
test_econv.rb Encode ' as ' when using encode(xml: :attr) 2020-07-10 09:34:08 -07:00
test_encoding.rb Check encoding name to replicate 2020-10-15 16:48:25 +09:00
test_enum.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_enumerator.rb Enumerator.new: raise unless block given 2020-12-22 13:52:03 +09:00
test_env.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_eval.rb support multi-run for test/ruby/test_eval.rb 2020-01-28 15:23:51 +09:00
test_exception.rb Remove the uninitialized instance variable verbose mode warning 2020-12-10 10:16:05 -08:00
test_fiber.rb Let Fiber#raise work with transferring fibers 2020-12-12 10:18:19 +13:00
test_file.rb Use a temporary file for chown test 2019-12-18 13:35:58 +09:00
test_file_exhaustive.rb merge revision(s) a681c484a3: [Backport #17626] 2021-02-16 13:16:54 +09:00
test_fixnum.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_flip.rb
test_float.rb numeric.c: optimize float ** 2 case by fastpath 2020-05-12 02:14:27 +09:00
test_fnmatch.rb
test_frozen_error.rb Split test_frozen_error.rb 2019-12-31 19:43:36 +09:00
test_gc.rb merge revision(s) efcdf68e6443ab70fbff1703b9dabbfc5090df31,5e26619660f20272a53c7f839dde36cce034bb35: [Backport #17539] 2021-02-01 21:42:11 +09:00
test_gc_compact.rb Disable auto compaction on platforms that can't support it 2020-11-25 11:29:14 -08:00
test_hash.rb Make any hash values fixable [Bug #17488] 2021-01-13 17:06:48 +09:00
test_ifunless.rb
test_inlinecache.rb fix bug on method cache invalidation. 2020-03-11 02:50:44 +09:00
test_integer.rb Fix unsigned int overflow in error message for chr 2020-09-30 00:31:59 +09:00
test_integer_comb.rb
test_io.rb Use category: :deprecated in warnings that are related to deprecation 2020-12-18 09:54:11 -08:00
test_io_m17n.rb Check encoding name to replicate 2020-10-15 16:48:25 +09:00
test_iseq.rb Raise when loading unprovided builtin function [Bug #17192] 2020-11-30 15:19:49 +09:00
test_iterator.rb Warn when passing a non-literal block to Kernel#lambda 2020-06-11 07:30:48 -07:00
test_jit.rb Remove the uninitialized instance variable verbose mode warning 2020-12-10 10:16:05 -08:00
test_jit_debug.rb tune parallel test 2020-12-01 09:39:09 +09:00
test_key_error.rb
test_keyword.rb merge revision(s) eeacdcb9a0: [Backport #17558] 2021-02-02 15:47:50 +09:00
test_lambda.rb test/ruby/test_lambda.rb: prevent lambda(&proc_block) warnings 2020-12-12 23:11:47 +09:00
test_lazy_enumerator.rb Improved Enumerable::Lazy#flat_map 2020-07-23 16:57:26 +09:00
test_literal.rb RUBY_ISEQ_DUMP_DEBUG=to_binary never kept the debug information for String literals 2020-09-16 11:17:23 +02:00
test_m17n.rb Windows: Read ENV names and values as UTF-8 encoded Strings (#3818) 2020-12-08 02:00:39 +09:00
test_m17n_comb.rb reroute musl unistd.h weirdness 2020-01-24 10:49:35 +09:00
test_marshal.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_math.rb
test_memory_view.rb [memory_view][fiddle] Rename len to byte_size in rb_memory_view_t 2020-12-23 09:24:53 +09:00
test_metaclass.rb
test_method.rb Remove unneeded code 2020-12-24 04:58:40 -05:00
test_method_cache.rb test/ruby/test_method_cache.rb: suppress "assigned but unused variable" 2020-12-14 15:56:13 +09:00
test_mixed_unicode_escapes.rb
test_module.rb test/ruby/test_module.rb: not depend on the order of method definitions 2020-12-24 10:15:15 +09:00
test_name_error.rb Test for [Feature #16832] 2020-05-26 15:09:07 +09:00
test_nomethod_error.rb Make test for no method error more reliable 2020-06-06 13:48:24 -04:00
test_not.rb
test_numeric.rb numeric.c, range.c: prohibit zero step 2020-10-23 15:26:51 +09:00
test_object.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_objectspace.rb Check argument to ObjectSpace._id2ref 2020-06-16 18:25:35 +09:00
test_optimization.rb Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && 2020-12-04 16:45:54 +01:00
test_pack.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_parse.rb shareable_constant_value: experimental_copy 2020-12-24 14:28:47 +09:00
test_path.rb Revert "Should return "." for File.extname("file.") also on Windows" 2019-12-23 11:54:25 +09:00
test_pattern_matching.rb merge revision(s) 1b89b99941: [Backport #17534] 2021-02-02 17:50:00 +09:00
test_pipe.rb
test_primitive.rb support multi-run for test/ruby/test_primitive.rb 2020-01-28 15:23:51 +09:00
test_proc.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_process.rb Store errno in struct rb_process_status 2020-12-24 22:59:37 +09:00
test_rand.rb Deprecate Random::DEFAULT 2020-12-14 20:29:50 +01:00
test_range.rb numeric.c, range.c: prohibit zero step 2020-10-23 15:26:51 +09:00
test_rational.rb merge revision(s) 9efd590a13d1e8b8a141c46eabb48c2a1c286d2b,a55eb9a2af7950d180d9d31ffde2bce66710f44f: [Backport #17572] 2021-02-02 15:47:50 +09:00
test_rational2.rb
test_readpartial.rb
test_refinement.rb reset cache before iterating 2020-12-22 06:09:30 +09:00
test_regexp.rb merge revision(s) 0036648a42: [Backport #17533] 2021-02-01 19:20:20 +09:00
test_require.rb Skip TestRequire#test_loading_fifo_fd_leak on Android 2020-04-19 23:14:31 +09:00
test_require_lib.rb Detect started threads when require only 2019-12-06 00:12:58 +09:00
test_rubyoptions.rb merge revision(s) 6f6dfdcc68: [Backport #17523] 2021-02-01 19:19:27 +09:00
test_rubyvm.rb ruby_vm_global_method_state is no longer needed. 2020-10-14 23:15:21 +09:00
test_rubyvm_mjit.rb
test_settracefunc.rb Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && 2020-12-04 16:45:54 +01:00
test_signal.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_stack.rb Pass ASAN options to child environments 2020-09-28 09:45:04 -07:00
test_string.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
test_stringchar.rb
test_struct.rb Classes made from Struct should have default new singleton method. 2020-05-08 04:18:45 -04:00
test_super.rb This test is not testing attr_writer 2020-04-14 23:59:29 -07:00
test_symbol.rb Added Symbol#name 2020-09-04 22:18:59 +09:00
test_syntax.rb Reset paren_nest at tAREF and tASET [Bug #17431] 2020-12-24 01:39:52 +09:00
test_system.rb
test_thread.rb Wait testing/helper threads to terminate 2020-12-13 13:39:57 +09:00
test_thread_cv.rb
test_thread_queue.rb Apply timeout-scale to test_thr_kill. 2020-08-06 08:36:53 +09:00
test_threadgroup.rb
test_time.rb merge revision(s) f4be7a510e: 2021-02-01 19:05:57 +09:00
test_time_tz.rb Don't double fractional seconds when passing timezone object to Time.new 2020-11-28 15:41:41 +09:00
test_trace.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_transcode.rb Add string encoding IBM720 alias CP720 (#3803) 2020-11-22 22:23:40 +09:00
test_undef.rb
test_unicode_escape.rb
test_variable.rb Raise RuntimeError for class variable overtaken in nonverbose mode 2020-06-18 08:21:29 -07:00
test_vm_dump.rb cause SEGV for the test. 2020-05-26 04:49:11 +09:00
test_weakmap.rb
test_whileuntil.rb
test_yield.rb
ut_eof.rb