1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--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
bigdecimal * ext/bigdecimal/bigdecimal.c (BigDecimal_s_allocate): follow 2011-12-21 03:35:27 +00:00
cgi
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
erb
etc
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
io * ext/io/console/console.c (console_cooked, console_set_cooked): 2011-11-18 07:12:14 +00:00
irb
json Remove tests of json/add/{complex, rational}. 2011-09-01 00:23:20 +00:00
logger
matrix
minitest Imported minitest 2.8.1 2011-11-17 23:02:16 +00:00
misc
mkmf * lib/mkmf.rb: Use MakeMakefile's rm_f to avoid conflict with Rake or 2011-11-30 00:57:24 +00:00
monitor
net Suppress warnings. 2011-12-22 09:48:50 +00:00
nkf
objspace * io.c (argf_type): make typed data. 2011-12-15 08:57:01 +00:00
open-uri
openssl * Make sure to clear $! when ignoring an exception 2011-12-20 06:06:46 +00:00
optparse
ostruct
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
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
sdbm
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
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
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
runner.rb
test_cmath.rb
test_delegate.rb * lib/delegate.rb (Delegator#methods): Kernel#methods receives 2011-12-04 03:05:03 +00:00
test_find.rb
test_ipaddr.rb
test_mathn.rb
test_mutex_m.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb
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_set.rb
test_shellwords.rb
test_singleton.rb
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_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
test_tracer.rb
test_tsort.rb
with_different_ofs.rb