nobu
7909af18ed
* io.c (argf_next_argv): go advance when the next file cannot be
...
read. [ruby-core:34446]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-13 22:30:50 +00:00
usa
fae9930033
* test/ruby/test_argf.rb (test_inplace_rename_impossible): unlink
...
the renamed temporary file on no_safe_rename platforms.
* test/ruby/test_argf.rb (test_readlines_limit_0,
test_each_line_limit_0): should close argf because the associated
Tempfile object cannot unlink the temporary file when it's gc'ed
on some platforms (Windows, etc.)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 02:34:46 +00:00
nobu
f2dd4eb3cc
* io.c (argf_readlines): forward to current_file for arguments
...
check. http://twitter.com/nagachika/status/3634254856589312
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-14 03:05:29 +00:00
kazu
0a6d09330c
* io.c (rb_io_getline_fast, rb_io_getline_1): fix ARGF.lineno behavior. [ruby-core:25205]
...
* test/ruby/test_argf.rb (TestArgf#test_lineno3): add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 15:56:43 +00:00
akr
242e2aaec2
remove temporally files explicitly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 17:59:49 +00:00
akr
98697d3617
make tempfile prefix more descriptive.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 05:46:38 +00:00
nobu
7fed54570f
* test/ruby/test_argf.rb (assert_src_expected): refactored.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-31 01:41:35 +00:00
nobu
b7f26835da
* io.c (argf_eof): go to the next file if called after ARGF.close
...
or ARGF.skip. [ruby-core:24561]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-26 10:17:39 +00:00
nobu
c689ee1a89
* io.c (argf_eof): should not have reached EOF before trying to
...
read. based on a patch by Heesob Park <phasis AT gmail.com> at
[ruby-core:24559]. [ruby-core:24557]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-25 08:49:08 +00:00
matz
be3c53d59d
* test/ruby/test_argf.rb (TestArgf#test_skip): updated test
...
according to clarified behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 15:49:41 +00:00
usa
d324a46784
* test/ruby/test_argf.rb (test_readpartial2): readpartial works just like
...
binmode, so input of it should be binmode'ed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 03:26:32 +00:00
nobu
85101b7625
* test/ruby/test_argf.rb (test_{argf,lineno,lineno2}): don't repeat
...
comments and expected results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 07:30:56 +00:00
mame
eafe85f603
* test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): new
...
method.
* test/ruby/test_argf.rb: use assert_in_out_err instead of
EnvUtil.rubyexec.
* test/ruby/test_module.rb: ditto.
* test/ruby/test_require.rb: ditto.
* test/ruby/test_objectspace.rb: ditto.
* test/ruby/test_object.rb: ditto.
* test/ruby/test_string.rb: ditto.
* test/ruby/test_method.rb: ditto.
* test/ruby/test_variable.rb: ditto.
* test/ruby/test_io.rb: ditto.
* test/ruby/test_rubyoptions.rb: ditto.
* test/ruby/test_exception.rb: ditto.
* test/ruby/test_class.rb: ditto.
* test/ruby/test_thread.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 15:26:04 +00:00
akr
1318dff1a8
add a test for [ruby-dev:34958].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-28 05:15:25 +00:00
usa
6874320d20
* test/ruby/test_argf.rb: support NO_SAFE_RENAME platforms.
...
* test/ruby/test_argf.rb: now tempfiles are binmode'ed to test tell/pos/etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 07:28:24 +00:00
usa
a966b61fd2
* test/ruby/test_argf.rb (test_binmode): wrong test. fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 05:52:32 +00:00
akr
8a5dd664e7
* test/ruby/test_argf.rb (teardown): remove renamed temporary files.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-02 10:18:38 +00:00
mame
5e6fc71d96
* test/ruby/test_argf.rb: rename a conflicting method name.
...
* test/ruby/test_string.rb: ditto.
* test/ruby/test_io.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 13:18:17 +00:00
mame
88c1862edb
* test/ruby/test_argf.rb: new tests for ARGF, to achieve over 85% test
...
coverage of file.c.
* test/ruby/test_io.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 13:48:54 +00:00