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
shirosaki 68fde4449a * io.c (rb_sys_fail_path): move the definition.
Move above for using it in set_binary_mode_with_seek_cur().

* io.c (set_binary_mode_with_seek_cur): fix improper seek cursor.
  Seeking file cursor with setting binary mode has possibility to
  cause infinite loop. Fixed the bug and refined error handling.
  Introduced at r34043.

  And cleanups as below.
  Remove unnecessary parentheses of `fptr`.
  Use return value of setmode().

* test/ruby/test_io_m17n.rb
  (TestIO_M17N#test_seek_with_setting_binmode): add a test for abobe.
  [ruby-core:41671] [Bug #5714]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-26 13:49:31 +00:00
..
enc
allpairs.rb
beginmainend.rb
endblockwarn_rb
envutil.rb * test/ruby/envutil.rb (invoke_ruby): remove :timeout option before 2011-12-18 00:38:35 +00:00
lbtest.rb
marshaltestlib.rb
sentence.rb
test_alias.rb
test_argf.rb * io.c (argf_next_argv): open in default text mode. 2011-09-03 14:52:18 +00:00
test_array.rb * array.c (rb_ary_reject_bang, rb_ary_delete_if): update rdoc. 2011-12-15 01:44:58 +00:00
test_assignment.rb
test_autoload.rb * insns.def (defineclass), vm_insnhelper.c (vm_get_cvar_base): see 2011-09-01 08:31:24 +00:00
test_basicinstructions.rb
test_beginendblock.rb * parse.y (stmt_or_begin): changed the error message for BEGIN not 2011-12-12 13:43:56 +00:00
test_bignum.rb * bignum.c (): refix of r33536. Don't change behavior of Bignum#/. 2011-11-22 02:27:53 +00:00
test_call.rb
test_case.rb * compile.c (case_when_optimizable_literal): When float value can be 2010-09-09 13:40:14 +00:00
test_class.rb * object.c (rb_obj_clone): singleton class should be attached 2011-09-18 22:54:25 +00:00
test_clone.rb
test_comparable.rb
test_complex.rb * complex.c (nucomp_rationalize): fix function. [ruby-core:40667] 2011-11-02 12:36:06 +00:00
test_complex2.rb * test/ruby/test_{complex2,complexrational}.rb: use skip. 2011-05-08 13:18:47 +00:00
test_complexrational.rb * test/ruby/test_{complex2,complexrational}.rb: use skip. 2011-05-08 13:18:47 +00:00
test_condition.rb
test_const.rb * variable.c (rb_const_set): show the previous definition 2011-09-03 15:11:53 +00:00
test_continuation.rb * thread.c (set_trace_func, thread_set_trace_func_m): reset tracing 2011-07-21 11:09:52 +00:00
test_defined.rb * vm_insnhelper.h (COPY_CREF): should copy 2011-03-30 05:38:50 +00:00
test_dir.rb
test_dir_m17n.rb * test/ruby/test_process.rb (TestProcess#test_no_curdir): skip silently on 2011-03-25 02:50:17 +00:00
test_econv.rb * test/ruby/test_econv.rb (TestEncodingConverter#test_default_external): drop stderr. 2011-12-10 08:12:28 +00:00
test_encoding.rb * encoding.c (require_enc): reject only loading from untrusted 2011-09-25 07:54:35 +00:00
test_enum.rb * enum.c (slice_before_i): use rb_attr_get to surpress wrong warning 2011-09-24 18:43:32 +00:00
test_enumerator.rb
test_env.rb try and catch for the test of setenv(3). 2011-05-29 16:49:14 +00:00
test_eval.rb * vm_insnhelper.c (vm_cref_push): no outer cref is needed for proc 2010-09-23 00:01:40 +00:00
test_exception.rb * error.c (name_err_mesg_to_str): clear rb_thread_t::errinfo when 2011-12-13 14:50:12 +00:00
test_fiber.rb * cont.c (fiber_switch): ignore fiber context switch 2011-11-20 21:17:57 +00:00
test_file.rb * win32/win32.c (rb_w32_uchmod): typo. [Bug#5671] [ruby-dev:44898] 2011-11-28 00:33:18 +00:00
test_file_exhaustive.rb * test/ruby/test_file_exhaustive.rb (TestFileExhaustive::test_expand_path): 2010-09-16 06:03:13 +00:00
test_fixnum.rb * numeric.c (bit_coerce): A Fixnum and a Bignum are only permitted for 2011-08-29 01:07:15 +00:00
test_float.rb Fix for r33811. 2011-11-22 04:54:42 +00:00
test_fnmatch.rb
test_gc.rb * gc.c (rb_gc_set_params): ruby_verbose can be Qnil, so use RTEST. 2011-10-04 02:44:55 +00:00
test_hash.rb * hash.c (recursive_hash): hash value of emptied hash should be 2011-08-02 03:03:18 +00:00
test_ifunless.rb
test_integer.rb
test_integer_comb.rb
test_io.rb * test/ruby/test_io.rb (TestIO#test_autoclose): Tempfile.new doesn't 2011-12-26 04:21:15 +00:00
test_io_m17n.rb * io.c (rb_sys_fail_path): move the definition. 2011-12-26 13:49:31 +00:00
test_iterator.rb
test_lambda.rb * compile.c (setup_args), vm.c (invoke_block_from_c), 2010-12-20 21:10:24 +00:00
test_literal.rb * parse.y (parser_tokadd_string, parser_yylex): ignore a backslash 2011-09-02 00:58:10 +00:00
test_m17n.rb * numeric.c (rb_enc_uint_chr): fix message format. Bug#4869 2011-06-11 07:52:34 +00:00
test_m17n_comb.rb * encoding.c (rb_enc_compatible): change the rule for empty strings: 2011-02-15 07:08:15 +00:00
test_marshal.rb * test/ruby/test_marshal.rb: renamed methods duplicated with those 2011-11-01 15:21:50 +00:00
test_math.rb * math.c (math_atan2): change the behavior when x and y are zero. 2010-08-27 03:51:56 +00:00
test_metaclass.rb
test_method.rb * iseq.c (iseq_s_disasm): fix a bug that may cause SEGV. 2011-08-20 04:26:20 +00:00
test_mixed_unicode_escapes.rb
test_module.rb * variable.c (set_const_visibility): clear inine-cache when constant's 2011-12-08 14:47:19 +00:00
test_notimp.rb * lib/test/unit.rb (assert_include): add alias. 2011-02-12 14:17:54 +00:00
test_numeric.rb * test/ruby/test_numeric.rb (test_num2long): modify a test agaist the 2011-08-29 14:24:31 +00:00
test_object.rb * test/ruby/test_object.rb: tests that respond_to? returns false. 2011-08-05 06:55:36 +00:00
test_objectspace.rb Clean warnings: unused variables. 2010-06-23 05:32:46 +00:00
test_optimization.rb * vm.c (rb_thread_mark): should mark self in conrol 2010-11-23 09:54:07 +00:00
test_pack.rb * lib/test/unit.rb (assert_include): add alias. 2011-02-12 14:17:54 +00:00
test_parse.rb * parse.y (primary): point method name line. [ruby-core:40936] 2011-12-13 15:01:20 +00:00
test_path.rb * file.c (rb_file_join): honor input encodings than ASCII-8BIT. 2011-10-26 06:24:29 +00:00
test_pipe.rb
test_primitive.rb * compile.c (NODE_ARGSCAT, NODE_ARGSPUSH): drop unused ARGSCAT 2010-08-05 12:32:02 +00:00
test_proc.rb * vm_insnhelper.c (vm_yield_setup_block_args): splat single 2011-12-12 20:50:09 +00:00
test_process.rb * test/ruby/test_process.rb (TestProcess#test_sete[gu]id): silently 2011-12-08 04:12:55 +00:00
test_rand.rb * test/ruby/test_rand.rb (test_random_bytes): fold mysteriously 2011-06-30 11:35:04 +00:00
test_range.rb * range.c (range_max): fix behavior with excluded end value. 2011-07-10 00:47:31 +00:00
test_rational.rb * rational.c (nurat_coerce): Rational#coerce should converts itself 2011-08-17 01:24:22 +00:00
test_rational2.rb
test_readpartial.rb
test_regexp.rb * re.c (Init_Regexp): added a constant for ARG_ENCODING_NONE 2011-02-02 22:18:14 +00:00
test_require.rb * test/ruby/test_require.rb (test_race_exception): delete temporary library name. 2011-12-20 20:37:43 +00:00
test_rubyoptions.rb * test/ruby/test_rubyoptions.rb (test_script_from_stdin): slave pty 2011-08-24 16:23:23 +00:00
test_settracefunc.rb * parse.y (primary): point method name line. [ruby-core:40936] 2011-12-13 15:01:20 +00:00
test_signal.rb * signal.c (reserved_signal_p): reverted a part of r32523. 2011-07-12 11:04:58 +00:00
test_sleep.rb * test/ruby/test_sleep.rb (test_sleep_5sec): 0.1sec tolerance is too 2011-11-15 12:58:37 +00:00
test_sprintf.rb * vsnprintf.c (BSD_vfprintf): don't output floating point 2010-11-22 16:06:38 +00:00
test_sprintf_comb.rb Revert "* sprintf.c (rb_str_format): fix: sprintf with hex format and" 2010-10-15 08:31:58 +00:00
test_string.rb cancel subversion backfire. sorry 2011-03-07 08:44:45 +00:00
test_stringchar.rb * string.c (rb_str_dump): fix expected length. [ruby-core:32935] 2010-10-28 18:04:23 +00:00
test_struct.rb * error.c (rb_check_trusted): new function to check an object is 2011-07-17 07:26:45 +00:00
test_super.rb * remove trailing spaces. 2011-05-15 11:55:52 +00:00
test_symbol.rb * test/-ext-/symbol/test_inadvertent_creation.rb: moved tests from 2011-10-07 08:57:42 +00:00
test_syntax.rb * test/ruby/test_syntax.rb (TestSyntax#test_syntax): show script name 2011-06-01 06:41:33 +00:00
test_system.rb cancel subversion backfire. sorry 2011-03-07 08:44:45 +00:00
test_thread.rb * test/ruby/test_thread.rb: don't test the maximum sleep time. Ruby 2011-12-22 14:39:46 +00:00
test_time.rb * time.c (TIME_COPY_GMT): copy vtm.utc_offset and vtm.zone too. 2011-11-19 10:47:03 +00:00
test_time_tz.rb * time.c (guess_local_offset): use the UTC offset of an older date on 2010-07-14 21:05:00 +00:00
test_trace.rb * thread.c (ruby_suppress_tracing): restore the state and invoke 2010-09-01 03:56:39 +00:00
test_transcode.rb * test/ruby/test_transcode.rb (TestTranscode#test_Big5_Hkscs): fix 2011-06-10 04:02:11 +00:00
test_undef.rb
test_unicode_escape.rb * parse.y (parser_tokadd_utf8, parser_tokadd_string): allow NUL 2010-05-29 18:40:48 +00:00
test_variable.rb * insns.def (defined): fix to checking class variable. 2011-08-24 00:52:04 +00:00
test_whileuntil.rb
test_yield.rb
ut_eof.rb