ruby/test
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
..
-ext- * ext/bigdecimal/README: Update redmine.ruby-lang.org to bugs.ruby-lang.org 2011-12-20 16:09:17 +00:00
base64
benchmark * lib/benchmark.rb: merge eregon/benchmark. 2011-06-28 06:09:46 +00:00
bigdecimal * ext/bigdecimal/bigdecimal.c (BigDecimal_s_allocate): follow 2011-12-21 03:35:27 +00:00
cgi * lib/cgi/core.rb: fix multipart form parsing bug. [Bug #3866] 2011-07-09 05:32:19 +00:00
coverage * thread.c (update_coverage): skip coverage count up if the current 2011-08-23 15:44:26 +00:00
csv * lib/csv.rb: Do not modify CSV.generate's argument [ruby-core:38356] 2011-07-21 21:37:43 +00:00
date * ext/date/date_core.c: uses to_integer instead. 2011-12-20 12:03:42 +00:00
dbm See the string "GDBM version". 2011-12-06 06:59:29 +00:00
digest * ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus 2011-07-15 03:03:31 +00:00
dl * test/dl/test_callback.rb (test_callback_with_string): prevents 2011-08-30 13:39:31 +00:00
drb * properties. 2011-06-29 03:35:48 +00:00
erb supress warnings. 2010-01-25 23:12:50 +00:00
etc * test/etc/test_etc.rb (TestEtc#test_get{pw,gr}nam): skip entries 2011-06-26 16:34:20 +00:00
fiddle * test/fiddle/helper.rb (libc_so, libm_so): Solaris support added. 2011-08-09 03:36:18 +00:00
fileutils * test/fileutils/test_fileutils.rb (test_chmod_symbol_mode): Solaris 2011-08-24 16:41:12 +00:00
gdbm * test/dbm/test_dbm.rb: split tests for read only database. 2011-11-08 11:51:28 +00:00
iconv * test/iconv/utils.rb: suppress warning message. 2010-11-28 13:25:58 +00:00
io * ext/io/console/console.c (console_cooked, console_set_cooked): 2011-11-18 07:12:14 +00:00
irb * test/irb/test_option.rb (test_end_of_option): don't read .irbrc. Bug#4138 2010-12-08 22:00:59 +00:00
json Remove tests of json/add/{complex, rational}. 2011-09-01 00:23:20 +00:00
logger * remove trailing spaces. 2011-05-15 11:55:52 +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 2.8.1 2011-11-17 23:02:16 +00:00
misc Run tests only for emacs 23+. 2011-06-15 03:28:47 +00:00
mkmf * lib/mkmf.rb: Use MakeMakefile's rm_f to avoid conflict with Rake or 2011-11-30 00:57:24 +00:00
monitor * lib/monitor.rb (wait): supported timeout. 2010-02-06 12:31:52 +00:00
net Suppress warnings. 2011-12-22 09:48:50 +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 * remove trailing spaces. 2011-05-15 11:55:52 +00:00
openssl * Make sure to clear $! when ignoring an exception 2011-12-20 06:06:46 +00:00
optparse * lib/optparse.rb: shell completion support for zsh. based on 2010-11-19 12:07:09 +00:00
ostruct * lib/ostruct.rb (method_missing): Handle [] and []= correctly. 2011-05-27 15:59:02 +00:00
pathname * lib/pathname.rb (Pathname#find): return an enumerator if 2011-11-19 12:52:37 +00:00
psych * ext/psych/lib/psych/visitors/to_ruby.rb: BigDecimals can be restored 2011-12-18 03:44:09 +00:00
rake * test/rake/test_rake_directory_task.rb 2011-11-28 13:28:26 +00:00
rdoc * lib/rdoc/encoding.rb (RDoc::Encoding.read_file): fixup newline chars 2011-11-30 00:13:02 +00:00
readline * ext/readline/readline.c (readline_readline): check if outstream 2011-12-24 01:56:36 +00:00
resolv * lib/resolv.rb (Resolv::DNS): retry IO.select for premature wakeup. 2011-10-31 12:03:49 +00:00
rexml * test/rexml/test_order.rb (OrderTester#test_more_ordering): use 2011-12-08 04:31:56 +00:00
rinda * test/rinda/test_rinda.rb (test_core_03_notify): Fixed test failures 2011-09-05 20:39:54 +00:00
ripper * parse.y (parser_magic_comment): should pass the proper value. 2011-12-12 21:29:53 +00:00
rss * lib/rexml/encoding.rb: use Ruby native encoding mechnism. [ruby-dev:42464] 2010-10-30 12:10:56 +00:00
ruby * io.c (rb_sys_fail_path): move the definition. 2011-12-26 13:49:31 +00:00
rubygems Follow the error format changed by FreeBSD 9. 2011-10-24 06:41:57 +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 add test for close-on-exec. 2011-11-03 11:15:15 +00:00
stringio * ext/stringio/stringio.c (strio_read): return new string if nil 2011-08-20 01:43:26 +00:00
strscan avoid method redefinition. 2010-02-14 03:09:53 +00:00
syck * ext/bigdecimal/README: Update redmine.ruby-lang.org to bugs.ruby-lang.org 2011-12-20 16:09:17 +00:00
testunit * test/testunit/test_parallel.rb (test_separate): Test for "--separate" 2011-12-25 14:17:28 +00:00
thread refine message for test_thr_kill. 2011-12-23 07:55:39 +00:00
uri * lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri 2011-06-03 00:32:25 +00:00
webrick * lib/webrick/httpresponse.rb (setup_header): 1xx responses 2011-12-12 22:33:56 +00:00
win32ole * test/win32ole/test_win32ole_variant.rb: use skip method to skip the test. 2011-07-30 08:36:47 +00:00
xmlrpc * lib/xmlrpc/client.rb, lib/xmlrpc/server.rb: should use 2011-08-05 04:35:28 +00:00
zlib * ext/zlib/zlib.c (gzfile_read_header): Ensure that each section of 2011-08-23 02:36:13 +00:00
inlinetest.rb
profile_test_all.rb property. 2010-10-29 23:50:57 +00:00
runner.rb * common.mk (RUN_OPT): disable gems. 2011-07-08 23:39:42 +00:00
test_cmath.rb Rerefix test introduced by r32307. 2011-06-30 03:31:01 +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 Clean warnings: unused variables. 2010-06-23 05:32:46 +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 * lib/pp.rb (PP::ObjectMixin#pretty_print): use to_s regardless of 2009-11-07 12:05:38 +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 Generate temporary file in tmpdir. 2011-12-08 14:52:13 +00:00
test_pty.rb * test/test_pty.rb (test_pty_check_default): call PTY.check until 2011-12-23 00:24:52 +00:00
test_securerandom.rb * test/test_securerandom.rb: Add testcase. This testcase does NOT aim 2011-06-16 10:32:51 +00:00
test_set.rb use require_relative. 2010-02-02 13:58:56 +00:00
test_shellwords.rb
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.strptime): use Time.at if d[:seconds] is set. 2011-10-04 07:37:11 +00:00
test_timeout.rb * lib/timeout.rb (Timeout#timeout): propagate errors to the 2010-04-19 09:58:09 +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
with_different_ofs.rb * test/with_different_ofs.rb (DifferentOFS): should not affect 2010-12-26 02:15:55 +00:00