mame
7eb625425c
* re.c: fix SEGV by Regexp.allocate.names, Match.allocate.names, etc.
...
* test/ruby/test_regexp.rb: add tests for above.
* io.c: fix SEGV by IO.allocate.print, etc.
* test/ruby/test_io.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-02 12:45:42 +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
akr
b1166a0469
* io.c (copy_stream_body): call rb_io_check_readable and
...
rb_io_check_writable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-21 10:09:33 +00:00
akr
935933d0d3
fix deadlock.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-20 11:30:43 +00:00
akr
ae2921ae67
* io.c (copy_stream_rbuf_to_dst): removed.
...
(copy_stream_fallback_body): don't bypass write method.
(copy_stream_body): simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-20 06:13:17 +00:00
akr
01c433b58c
* io.c (copy_stream_fallback): write directly (bypassing write method)
...
if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-20 04:59:04 +00:00
akr
a16e0c29db
* io.c (copy_stream_fallback): read directly (bypassing readpartial)
...
if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-20 03:51:57 +00:00
akr
9579647fe1
* io.c (copy_stream_body): use readpartial and write method for
...
non-IOs such as StringIO and ARGF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-19 19:47:16 +00:00
akr
0ef84dcefc
* io.c: IO.copy_stream implemented. [ruby-dev:33843]
...
* thread.c (rb_fd_select): new function.
* configure.in (sys/sendfile.h): check the header file.
(sendfile): check the function.
(pread): check the function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-30 06:38:05 +00:00
usa
f761aacdd8
* io.c (open_key_args): set arg->io even if no options passed.
...
[ruby-dev:33072]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 01:09:21 +00:00
akr
f478e73f04
make a test locale independent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 10:35:52 +00:00
matz
37855698ff
* string.c (rb_str_comparable): fixed to keep transitivity.
...
[ruby-dev:32693]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 02:40:55 +00:00
akr
68543f3092
use ML ref. for assertion message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-18 07:18:56 +00:00
ko1
ff2af1ed98
* bootstraptest/test_knownbug.rb: move fixed tests.
...
* bootstraptest/test_method.rb: ditto.
* test/ruby/test_io.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-26 11:01:18 +00:00
ko1
64221159aa
* test/ruby/test_io.rb: tests which cause SEGV should not be
...
added.
* bootstraptest/test_knownbug.rb: add above test to known bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-14 08:31:24 +00:00
akr
4fe6fa8849
add test for [ruby-dev:31650] and [ruby-dev:31659].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-08 15:59:05 +00:00
aamine
72a6f92f4e
* test/ruby/test_io.rb (test_gets_rs): add more tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 17:29:18 +00:00
akr
126cd9d01e
add test for [ruby-dev:24460]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-09 11:53:16 +00:00