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
normal bbf7495fe2 string.c: ensure String#freeze resizes internal buffer
rb_str_freeze may resize oversized buffers to save memory, so favor
it over rb_obj_freeze.  This is useful because IO methods do not
prematurely shrink buffers, as they are likely to be overwritten
with full data.

* string.c (Init_String): use rb_str_freeze for String#freeze

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-06 19:45:02 +00:00
..
enc
allpairs.rb
beginmainend.rb
lbtest.rb
marshaltestlib.rb
sentence.rb
test_alias.rb
test_argf.rb
test_arity.rb
test_array.rb * test/ruby/test_array.rb 2015-07-06 16:49:01 +00:00
test_assignment.rb
test_autoload.rb
test_backtrace.rb
test_basicinstructions.rb
test_beginendblock.rb
test_bignum.rb
test_call.rb
test_case.rb
test_class.rb insns.def: preserve encoding 2015-06-28 17:10:26 +00:00
test_clone.rb
test_comparable.rb
test_complex.rb * Move test cases from test/ruby/test_complex.rb to test/test_cmath.rb 2015-06-06 22:11:00 +00:00
test_complex2.rb
test_complexrational.rb
test_condition.rb
test_const.rb
test_continuation.rb
test_defined.rb * vm_insnhelper.c (vm_defined): check respond_to_missing? 2015-06-02 19:49:22 +00:00
test_dir.rb * include/ruby/ruby.h: $SAFE=3 is now obsolete. 2015-06-17 05:29:51 +00:00
test_dir_m17n.rb
test_econv.rb
test_encoding.rb
test_enum.rb all?, any?, one?, none? of empty Enumerable 2015-07-04 11:54:04 +00:00
test_enumerator.rb
test_env.rb * include/ruby/ruby.h: $SAFE=2 is now obsolete. 2015-06-18 14:21:03 +00:00
test_eval.rb
test_exception.rb error.c: NameError#receiver 2015-06-18 04:32:50 +00:00
test_extlibs.rb fix error 2015-06-12 13:22:55 +00:00
test_fiber.rb
test_file.rb * include/ruby/ruby.h: $SAFE=3 is now obsolete. 2015-06-17 05:29:51 +00:00
test_file_exhaustive.rb
test_fixnum.rb
test_flip.rb
test_float.rb
test_fnmatch.rb
test_gc.rb
test_hash.rb hash.c: fetch_values 2015-06-12 08:34:17 +00:00
test_ifunless.rb
test_integer.rb
test_integer_comb.rb
test_io.rb io.c: reopen OS encoding path 2015-06-30 08:28:28 +00:00
test_io_m17n.rb test_io.rb: skip method definitions 2015-06-30 07:48:24 +00:00
test_iseq.rb
test_iterator.rb
test_keyword.rb
test_lambda.rb
test_lazy_enumerator.rb
test_literal.rb
test_m17n.rb
test_m17n_comb.rb
test_marshal.rb
test_math.rb
test_metaclass.rb
test_method.rb * vm_core.h: remove rb_iseq_t::klass to reduce dynamic data. 2015-07-06 18:44:54 +00:00
test_mixed_unicode_escapes.rb
test_module.rb insns.def: preserve encoding 2015-06-28 17:06:59 +00:00
test_not.rb
test_notimp.rb
test_numeric.rb
test_object.rb test_object.rb: use assert_separately 2015-07-01 08:17:37 +00:00
test_objectspace.rb
test_optimization.rb string.c: ensure String#freeze resizes internal buffer 2015-07-06 19:45:02 +00:00
test_pack.rb * pack.c (pack_{un,}pack): new template character j and J, pointer 2015-06-12 12:22:36 +00:00
test_parse.rb
test_path.rb
test_pipe.rb
test_primitive.rb
test_proc.rb
test_process.rb test_process.rb: reap pid 2015-07-05 02:03:11 +00:00
test_rand.rb
test_range.rb
test_rational.rb
test_rational2.rb
test_readpartial.rb
test_refinement.rb
test_regexp.rb * include/ruby/ruby.h: $SAFE=3 is now obsolete. 2015-06-17 05:29:51 +00:00
test_require.rb class.c: TypeError when superclass mismatch 2015-06-28 03:07:37 +00:00
test_rubyoptions.rb
test_rubyvm.rb
test_settracefunc.rb
test_signal.rb
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_string.rb
test_stringchar.rb
test_struct.rb
test_super.rb * vm_insnhelper.c (vm_search_super_method): do not skip calling 2015-07-06 09:02:34 +00:00
test_symbol.rb
test_syntax.rb
test_system.rb
test_thread.rb * include/ruby/ruby.h: $SAFE=3 is now obsolete. 2015-06-17 05:29:51 +00:00
test_threadgroup.rb
test_time.rb
test_time_tz.rb
test_trace.rb
test_transcode.rb transcode.c: empty encoding name 2015-07-03 03:25:21 +00:00
test_undef.rb
test_unicode_escape.rb
test_variable.rb variable.c: remove generic ivar support for special constants 2015-06-03 20:53:35 +00:00
test_weakmap.rb
test_whileuntil.rb
test_yield.rb
ut_eof.rb