diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-25 07:25:06 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-25 07:25:06 +0000 |
| commit | bf8885257c3b78c39bf04369025088e8a5809354 (patch) | |
| tree | 6f01a797fee6588143fc01a63016c1baae9df3aa /test/ruby/test_io.rb | |
| parent | e176e67b7fd97d2528e42b48303a2d38c10f2507 (diff) | |
| download | ruby-bf8885257c3b78c39bf04369025088e8a5809354.tar.gz ruby-bf8885257c3b78c39bf04369025088e8a5809354.tar.xz ruby-bf8885257c3b78c39bf04369025088e8a5809354.zip | |
* io.c (flush_before_seek): check io_fflush result.
(rb_io_check_readable): ditto.
(rb_io_flush): ditto.
(rb_io_fsync): ditto.
(remain_size): ditto.
(rb_io_write_nonblock): ditto.
(finish_writeconv): ditto.
(fptr_finalize): ditto.
(io_reopen): ditto.
(rb_io_reopen): ditto.
(copy_stream_body): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
| -rw-r--r-- | test/ruby/test_io.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index e0350452d..7739535ec 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1249,13 +1249,13 @@ class TestIO < Test::Unit::TestCase def test_initialize t = make_tempfile - fd = IO.sysopen(t.path) + fd = IO.sysopen(t.path, "w") assert_kind_of(Integer, fd) f = IO.new(fd, "w") f.write("FOO\n") f.close - assert_equal("foo\nbar\nbaz\n", File.read(t.path)) + assert_equal("FOO\n", File.read(t.path)) f = open(t.path) assert_raise(RuntimeError) do |
