summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
AgeCommit message (Collapse)Author
2011-07-30* io.c (rb_io_each_byte): rbuf can be refreshed during yield.nobu
[Bug #5119] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-17* error.c (rb_warn_m): accept multiple args in like puts. rdocnobu
patch by Erik Price at [ruby-core:38119]. [Feature #5029] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-18* io.c (fill_cbuf): finish reading at EOF, and the readconv hasnobu
been cleared by another thread while io_fillbuf() is waiting at select(). a patch in [ruby-core:37197] by Hiroshi Shirosaki <h.shirosaki AT gmail.com>. fixed #3840 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16* test/ruby/test_io.rb (TestIO#test_copy_stream_socket): fixkosaki
test hanging up issue. Patch by CHIKANAGA Tomoyuki. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-15* test/ruby/test_io.rb (test_copy_stream_socket): wait a child processakr
before SIGUSR1 handler is removed. * test/pathname/test_pathname.rb (define_assertion): use line number for test method names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-09* io.c: fix IO.copy_stream interrupt handling.akr
based on the patch by Eric Wong. [ruby-core:36156] * vm_core.h (rb_thread_call_with_gvl): don't declare here. * thread.c: include internal.h. (rb_thread_execute_interrupts): new function. * internal.h (rb_thread_execute_interrupts): declared. (rb_thread_call_with_gvl): declared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-06* test/ruby/test_io.rb (TestIO#test_s_{,bin}write): do not create a filekazu
under /tmp. [Bug #4846] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-02* io.c: Add File.write, File.binwrite. [Feature #1081] [ruby-core:21701]sorah
* test/ruby/test_io.rb: Test for File.write, File.binwrite. * NEWS: News for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-31* test/ruby/test_io.rb (TestIO#test_open_mode): MUST release resourcesusa
explicitly. fix problem of r31671 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-27* test/ruby/test_io.rb (TestIO#test_ungetc2): get rid of busy loop.nobu
* test/ruby/test_signal.rb (TestSignal#test_signal2): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-21* io.c (rb_io_extract_modeenc): accept combination hash andkosaki
File::Constants. (eg. File.open('yo', :mode => File::WRONLY)) [Feature #4742][ruby-core:36338] * test/ruby/test_io.rb (TestIO#test_open_mode): new test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-19revert O_CLOEXEC patch series completely.kosaki
because boron chkbuild test result says, An old linux kernel ignore O_CLOEXEC silently instead of return an error. It may lead to bring new security risk. So, we have to be pending it until finish to implement proper fallback logic. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-17* test/ruby/test_io.rb (TestIO#test_O_CLOEXEC): add null check.kosaki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-07* test/ruby/test_io.rb (TestIO#test_readpartial_lock),nobu
(TestIO#test_read_lock): get rid of GVL fairness problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-05* test/ruby/test_io.rb (TestIO#test_O_CLOEXEC): fix false positivekosaki
detection. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-04* io.c (Init_IO): Added File::CLOEXEC constant. [ruby-core:22893] [Feature ↵kosaki
#1291] * test/ruby/test_io.rb (TestIO#test_o_cloexec): test for File::CLOEXEC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-18* test/ruby/test_io.rb (TestIO#test_cross_thread_close_fd):arton
skip cross thread pipe close if windows git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-11* test/ruby/test_io.rb: Added TestIO#test_cross_thread_close_stdiokosaki
and TestIO#test_cross_thread_close_fd. The patch was written by Eric Wong. [ruby-core:35669] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-07cancel subversion backfire. sorrymatz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-07* gc.c (rb_gc_set_params): allow GC parameter configuration bymatz
environment variables. based on a patch from funny-falcon at https://gist.github.com/856296, but honors safe level. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-05* test/ruby/test_io.rb (TestIO#test_fcntl_lock): small clean up.kosaki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-04* io.c (io_cntl, nogvl_io_cntl): IO.fcntl() and IO.ioctl()kosaki
release GVL during calling kernel interface. Suggested by Eric Wong. [ruby-core:35417][Bug #4463] * test/ruby/test_io.rb (TestIO#test_fcntl_lock): add new test for IO.fcntl(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 * io.c (advice_arg_check): Change argument check.kosaki
Now, an unsupported advice makes NotImplementedError. [ruby-dev:42887] [Ruby 1.9-Feature#4204] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 * io.c (rb_io_advise): New API. IO#advise() allows to tell thekosaki
ruby runtime how it expects to use a file handle. This feature can be improved a performance some situations. Note: This feature is mainly developed by Run Paint Run Run. Thank you! [ruby-core:33110] [Ruby 1.9-Feature#4038] * io.c (do_io_advise): Helper function. * io.c (io_advise_sym_to_const): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14* test/ruby/test_io.rb (test_reopen, test_reinitialize): should closeusa
the temporay files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14* test/ruby/test_io.rb (test_binmode_after_closed): the temporary fileusa
maked by make_temfile is already closed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14* test/ruby/test_io.rb (test_flush_in_finalizer[12]): should closeusa
temporary file because it's only used for taking pathname and unlinking the file after the end of the test (in GC phase). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-04* io.c (rb_io_readlines, rb_io_each_line): limit must not be zero.nobu
a patch from Tomoyuki Chikanaga at [ruby-dev:42538]. #4024 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-27* test/ruby/test_io.rb (TestIO#pipe): should close write end of pipeusa
before closing read end, to get rid of timing problem. * test/ruby/test_io_m17n.rb (TestIO_M17N#pipe): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-27* test/ruby/test_io.rb (TestIO#pipe): need to propagate exceptionsusa
in read/write thread. fix r29541. * test/ruby/test_io_m17n.rb (TestIO_M17N#pipe): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-20* test/ruby/test_io.rb (TestIO#pipe): get rid of deadlock on pipe.nobu
a patch from Tomoyuki Chikanaga at [ruby-dev:42435]. #3970 * test/ruby/test_io_m17n.rb (TestIO_M17N#pipe): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-06* io.c (fptr_finalize): write_mutex might have been destroyednobu
already in finalization phase, as the order of finalizers is not guaranteed. rb_mutex_t should be used in place of Mutex object in the future. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-17* test/ruby/test_io.rb (test_threaded_flush): test "hi" is not outputakr
twice. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20* io.c (io_flush_buffer): write and buffer operations should benobu
monolithic. [ruby-core:31348] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15* test/ruby/test_io.rb (safe_4): does not use Timeout becausemame
Timeout.timeout uses Thread#kill which raises SecurityError when $SAFE == 4. based on a patch from Tomoyuki Chikanaga. [ruby-dev:41484] * test/ruby/test_io.rb (test_print_separators): use pipe (test helper method) instead of IO.pipe. [ruby-dev:41484] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-30* test/ruby/test_io.rb: skip false tests on Windows.nobu
[ruby-core:29886] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):nobu
use more descriptive assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21* io.c (rb_io_initialize): add autoclose argument to control closenobu
at finalization. [ruby-core:26222] * io.c (rb_io_autoclose_p, rb_io_set_autoclose): new methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-15* io.c (rb_io_print): RDoc update. a patch from Daniel Kelleymatz
in [ruby-core:28643]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-14* io.c (rb_io_each_codepoint): read directly when readconv isnobu
needed but internal encoding is not set. [ruby-core:28650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06* io.c (rb_io_s_write, rb_io_s_binwrite): delete File#write andmame
#binwrite. It may take a long time to make them stable, so 1.9.2 should not include them. We need refactoring to implement them again. * test/ruby/test_io.rb: delete tests for them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06* io.c (rb_io_s_binwrite): use mode "r+b" instead of "ab" to handlemame
offset correctly. [ruby-core:28517] * test/ruby/test_io.rb: use assert_equal instead of assert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-04* io.c (io_s_write, io_s_binwrite): add File#write and #binwrite.mame
[ruby-core:21701] * test/ruby/test_io.rb: add tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-17* io.c (io_fread, io_getpartial, io_read, io_sysread): by using lock,mame
prohibit modification of buffer string during read (which had caused EFAULT or SEGV). [ruby-dev:40437] * test/ruby/test_io.rb: rewrite tests for the old behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-17add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26* io.c (io_fwrite): adjust stdio file position after direct write onnobu
BSDish platforms. [ruby-core:26300] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-15* io.c (io_reopen): unread current buffer before telling thenobu
position, for the case of reopening same file. [ruby-dev:39479] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-07* io.c (rb_io_tell): adjustment for ungotten data.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-04* test/ruby/test_io.rb (test_binmode_after_closed): test for [ruby-core:25363].nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-19* io.c (io_read): should taint the result. [ruby-dev:38826]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e