ruby/test/ruby
Koichi Sasada 783dde2159 alias should not set defined_class for Modules
`me->defined_class` should be 0 for method entries of
Modules.

This patch checks this condition
and fix https://github.com/ruby/ruby/pull/11965#issuecomment-2448291790
2024-11-01 11:50:00 +09:00
..
enc Prevent "ambiguous first argument" warnings 2024-04-04 13:29:41 +09:00
rjit RJIT: Convert opt_case_dispatch keys with #to_value 2023-12-21 17:47:36 -08:00
allpairs.rb
beginmainend.rb
bug-11928.rb
bug-13526.rb
lbtest.rb
marshaltestlib.rb
sentence.rb
test_alias.rb alias should not set defined_class for Modules 2024-11-01 11:50:00 +09:00
test_allocation.rb Avoid hash allocation for certain proc calls 2024-08-19 19:00:37 -07:00
test_argf.rb Update ARGF.write interface 2024-04-04 18:54:54 +09:00
test_arithmetic_sequence.rb
test_arity.rb Allow anonymous memberless Struct 2023-04-24 07:37:20 -07:00
test_array.rb Uncomment test accidentally commented in 1656350 2024-08-22 19:47:40 -04:00
test_assignment.rb test/ruby/test_assignment.rb: Prevent a warning 2022-01-19 13:15:37 +09:00
test_ast.rb Update ruby test for colon-style hash inspect 2024-10-03 18:47:09 +09:00
test_autoload.rb macOS 10.13(High Sierra) is already EOL 2024-09-11 18:13:01 +09:00
test_backtrace.rb Revert moving things to Ruby 2024-07-29 14:18:11 -07:00
test_basicinstructions.rb
test_beginendblock.rb Disable callcc when ASAN is enabled 2024-03-04 13:07:26 +11:00
test_bignum.rb test_bignum: defined? returns String (#10880) 2024-05-30 19:59:30 +00:00
test_call.rb Fix evaluation order issue in f(**h, &h.delete(key)) 2024-09-18 12:46:07 -07:00
test_case.rb Prevent a warning (retry) 2024-09-18 11:16:22 +09:00
test_class.rb Rewrite #test_redefinition_mismatch to use a dedicated test class 2024-08-20 18:36:16 +09:00
test_clone.rb rb_obj_setup: do not copy RUBY_FL_SEEN_OBJ_ID 2024-02-09 17:38:54 +01:00
test_comparable.rb Add tests for passing nil to Comparable#clamp(min, max) 2023-10-25 16:34:48 +09:00
test_compile_prism.rb Fix intermediate array off-by-one error 2024-10-04 15:04:26 -04:00
test_complex.rb Make Complex#{inspect,to_s} work correctly if real part #inspect returns frozen string 2024-09-21 20:00:23 +02:00
test_complex2.rb Use omit instead of skip: test/ruby/**/*.rb 2022-01-04 17:25:30 +09:00
test_complexrational.rb Use omit instead of skip: test/ruby/**/*.rb 2022-01-04 17:25:30 +09:00
test_condition.rb
test_const.rb
test_continuation.rb Disable callcc when ASAN is enabled 2024-03-04 13:07:26 +11:00
test_data.rb Add some test cases to Data test 2023-11-30 21:35:04 +09:00
test_default_gems.rb Ignore method chains succeeding git ls-files 2024-03-23 23:58:40 +09:00
test_defined.rb Handle hash and splat nodes in defined? 2024-06-24 11:32:58 -07:00
test_dir.rb Add error checking to readdir, telldir, and closedir calls in dir.c 2024-09-12 10:04:10 -07:00
test_dir_m17n.rb Prefer the simple read/write File singleton methods 2024-03-16 23:44:07 +09:00
test_dup.rb Adding more clone tests, and adding dup tests 2022-06-16 08:48:08 -07:00
test_econv.rb Remove --disable-gems for assert_separately 2023-08-03 09:11:08 +09:00
test_encoding.rb Remove --disable-gems for assert_separately 2023-08-03 09:11:08 +09:00
test_enum.rb Enumerable#all?: Stop optimizing when a given block is not optimizable 2024-07-11 12:28:23 +09:00
test_enumerator.rb [Bug #20325] Enumerator.product.size is 0 if any size is 0 2024-04-16 16:13:19 +09:00
test_env.rb Windows: Use Unicode aware WinAPI function for ENV[]= 2024-09-24 14:06:51 +09:00
test_eval.rb Raise a compile error for break/next/redo inside eval in cases where it is optimized away 2024-09-18 16:54:56 -07:00
test_exception.rb Update ruby test for colon-style hash inspect 2024-10-03 18:47:09 +09:00
test_fiber.rb Move -test-/fatal/rb_fatal to -test-/fatal 2024-03-24 01:09:29 +09:00
test_file.rb Prevent a warning: assigned but unused variable - t0 2024-09-13 11:32:51 +09:00
test_file_exhaustive.rb Skip some tests which don't work under permissionless containers 2024-08-23 09:34:41 +10:00
test_fixnum.rb
test_flip.rb
test_float.rb [Bug #20705] Update strtod implementation 2024-10-05 23:29:42 +09:00
test_fnmatch.rb
test_frozen.rb Added tests for setting ivars on frozen objs 2022-06-16 08:48:08 -07:00
test_frozen_error.rb
test_gc.rb Remove defined check for GC.config in test_gc.rb 2024-10-11 11:35:45 -04:00
test_gc_compact.rb Rename supports_auto_compact? to supports_compact? 2024-10-11 15:29:10 -04:00
test_hash.rb Update ruby test for colon-style hash inspect 2024-10-03 18:47:09 +09:00
test_ifunless.rb
test_inlinecache.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_insns_leaf.rb
test_integer.rb Move incorrectly placed tests 2024-07-30 09:02:23 -04:00
test_integer_comb.rb [Bug #19335] Integer#remainder should respect #coerce (#7120) 2023-01-15 13:03:27 +09:00
test_io.rb [Bug #20787] Check the separator in IO#readline as well as 3.2 2024-10-07 11:06:44 +09:00
test_io_buffer.rb Add IO::Buffer tests for read and write with length & offset. (#11779) 2024-10-03 12:29:16 +00:00
test_io_m17n.rb Deprecate Kernel#open and IO support for subprocess creation/forking 2023-08-10 09:38:11 +09:00
test_io_timeout.rb Add support for sockaddr_un on Windows. (#6513) 2022-11-17 14:50:25 -08:00
test_iseq.rb RubyVM::InstructionSequence.of Thread::Backtrace::Location 2024-10-16 14:31:26 -04:00
test_iterator.rb Prevent warnings "the block passed to ... may be ignored" 2024-09-13 16:52:38 +09:00
test_key_error.rb
test_keyword.rb Update ruby test for colon-style hash inspect 2024-10-03 18:47:09 +09:00
test_lambda.rb Make Kernel#lambda raise when given non-literal block 2023-09-12 11:25:07 -04:00
test_lazy_enumerator.rb Do not set Enumerator::Lazy#zip to use packed format 2024-07-20 18:16:42 -07:00
test_literal.rb Prevent prism warnings in syntax exhaustive tests 2024-09-17 12:44:07 +09:00
test_m17n.rb Switch the default parser from parse.y to Prism 2024-09-12 13:43:04 -04:00
test_m17n_comb.rb
test_marshal.rb [Bug #20481] Check for unmarshaling ivar 2024-05-12 13:57:15 +09:00
test_math.rb math.c: Fix Math.log against huge bignum [Bug #19878] 2023-09-13 21:40:05 +09:00
test_memory_view.rb
test_metaclass.rb
test_method.rb Make Object#singleton_method return methods in modules included in or prepended to singleton class 2024-10-03 07:27:01 -07:00
test_method_cache.rb
test_mixed_unicode_escapes.rb Switch the default parser from parse.y to Prism 2024-09-12 13:43:04 -04:00
test_module.rb Fix Module#define_method to change visibility when passed existing method body 2024-06-06 15:02:04 -07:00
test_name_error.rb
test_nomethod_error.rb Do not include a backtick in error messages and backtraces 2024-02-15 18:42:31 +09:00
test_not.rb
test_numeric.rb [Bug#19445] Fix keyword splat in enumerator 2023-02-17 10:57:22 +09:00
test_object.rb Emit warning for other method redefinition types 2024-10-10 12:53:11 +09:00
test_objectspace.rb Remove a puts in test_finalizer_thread_raise 2024-10-15 09:10:35 -04:00
test_optimization.rb Optimized instruction for Hash#freeze 2024-09-05 12:46:02 +02:00
test_pack.rb Expand opt_newarray_send to support Array#pack with buffer keyword arg 2024-07-29 16:26:58 -04:00
test_parse.rb [Bug #20680] ensure block is always void context 2024-08-25 08:16:54 +09:00
test_path.rb
test_pattern_matching.rb Update ruby test for colon-style hash inspect 2024-10-03 18:47:09 +09:00
test_pipe.rb
test_primitive.rb
test_proc.rb Fix assertion when envval of proc is Qundef 2024-10-31 13:52:24 -04:00
test_process.rb Revert "TestProcess#test_daemon_noclose is only working with macOS 15.1 beta, we should skip with macOS 15.0" 2024-10-10 13:40:59 +09:00
test_rand.rb [Bug #19100] Add init_int32 function to rb_random_interface_t 2022-11-10 12:06:13 +09:00
test_random_formatter.rb [ruby/securerandom] Extract assert_uuid_v7 2023-10-12 05:58:31 +00:00
test_range.rb [Bug #20725] Should not call compare on nil-endpoint 2024-09-13 18:23:28 +09:00
test_rational.rb A negative denominator case in the Rational string parsing test 2022-12-10 18:57:20 +09:00
test_rational2.rb
test_readpartial.rb
test_refinement.rb Stop using the "undef" keyword to remove a constant 2024-08-29 13:54:55 -04:00
test_regexp.rb Fix memory leak in Regexp capture group when timeout 2024-07-25 09:23:49 -04:00
test_require.rb TestRequire#test_loading_fifo_threading_success: Extend the timeout limit 2024-06-07 23:44:29 +09:00
test_require_lib.rb [Bug #19872] Refine TestRequireLib 2023-09-13 10:43:10 +09:00
test_rubyoptions.rb Show where mutated chilled strings were allocated 2024-10-21 12:33:02 +02:00
test_rubyvm.rb [PRISM] Refactor parser support into its own module 2024-07-18 21:15:54 -04:00
test_settracefunc.rb Prevent a warning: assigned but unused variable - exp_events 2024-09-13 11:34:20 +09:00
test_shapes.rb compile.c: use rb_enc_interned_str to reduce allocations 2024-04-11 09:04:31 +02:00
test_signal.rb Remove SIGCHLD waidpid. (#7527) 2023-03-15 19:48:27 +13:00
test_sleep.rb Replace all GC.disable with EnvUtil.without_gc 2024-09-17 10:34:26 -04:00
test_sprintf.rb Update ruby test for colon-style hash inspect 2024-10-03 18:47:09 +09:00
test_sprintf_comb.rb
test_stack.rb EnvUtil.invoke_ruby also passes ASAN options 2023-08-02 19:55:30 +09:00
test_string.rb Rename size_pool -> heap 2024-10-03 21:20:09 +01:00
test_string_memory.rb Replace all GC.disable with EnvUtil.without_gc 2024-09-17 10:34:26 -04:00
test_stringchar.rb
test_struct.rb Make Struct memory leak test faster 2024-03-01 16:33:09 +01:00
test_super.rb Fix method caching bug when including/prepend module A that prepends module B 2024-09-19 07:34:01 -07:00
test_symbol.rb Prevent a warning due to error recovery of prism 2024-09-17 14:15:44 +09:00
test_syntax.rb Fix memory leak in syntax error in prism 2024-10-16 14:52:46 -04:00
test_system.rb [Bug #19624] Hide internal IO for backquote 2023-05-01 05:10:34 +09:00
test_thread.rb Remove dependency on fiddle from test/ruby 2024-06-04 19:53:04 +09:00
test_thread_cv.rb Remove stale tests 2023-03-10 11:54:59 +09:00
test_thread_queue.rb Make {Queue,SizedQueue}#freeze raise TypeError 2023-09-27 19:57:50 +01:00
test_threadgroup.rb
test_time.rb [Bug #20797] Check seconds in UTC offset as well as minutes 2024-10-14 13:55:55 +09:00
test_time_tz.rb [Bug #20327] Do not count subsecond to calculate UTC offset 2024-03-07 13:08:37 +09:00
test_trace.rb
test_transcode.rb [Bug #18651] Pass undefined region in CP51932 as is to CP50220 2024-09-20 16:23:55 +09:00
test_undef.rb Lazily create singletons on instance_{exec,eval} (#5146) 2021-12-02 15:53:39 -08:00
test_unicode_escape.rb
test_variable.rb Add test for many ivars 2023-10-18 15:01:13 -07:00
test_vm_dump.rb Add predicates for platforms 2024-09-10 16:50:21 +09:00
test_warning.rb Add regression test for Bug #20573 2024-06-12 10:25:57 -07:00
test_weakkeymap.rb Fix use-after-free in WeakKeyMap#clear 2024-08-23 16:37:11 -04:00
test_weakmap.rb Fix WeakMap use-after-free 2024-08-22 10:01:55 -04:00
test_whileuntil.rb [Bug #20094] Distinguish begin and parentheses 2023-12-27 17:50:15 +09:00
test_yield.rb
test_yjit.rb Skip GC compaction tests in test_yjit.rb when not supported 2024-10-16 10:17:54 -04:00
test_yjit_exit_locations.rb YJIT: Fallback opt_getconstant_path for const_missing (#8623) 2023-10-13 08:52:23 -07:00
ut_eof.rb