diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-05-27 09:05:33 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-05-27 09:05:33 +0000 |
commit | 419231017fe2789057aeef5cf9c8eec9ad24bc29 (patch) | |
tree | 0aedc0a708d9dabe03f528a7032df349bef99940 | |
parent | 88671379426904ac0caa9645cb3cca7fd1d1a2fa (diff) | |
download | ruby_io_splice-419231017fe2789057aeef5cf9c8eec9ad24bc29.tar.gz |
-rw-r--r-- | test/test_io_splice.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_io_splice.rb b/test/test_io_splice.rb index 4c63f69..bcfa2f8 100644 --- a/test/test_io_splice.rb +++ b/test/test_io_splice.rb @@ -9,7 +9,7 @@ class Test_IO_Splice < Test::Unit::TestCase str = 'abcde' size = 5 rd, wr = IO.pipe - tmp = Tempfile.new(nil) + tmp = Tempfile.new('ruby_io_splice') assert_nothing_raised { tmp.syswrite(str) @@ -26,7 +26,7 @@ class Test_IO_Splice < Test::Unit::TestCase off = 3 len = 2 rd, wr = IO.pipe - tmp = Tempfile.new(nil) + tmp = Tempfile.new('ruby_io_splice') assert_nothing_raised { tmp.syswrite(str) @@ -41,7 +41,7 @@ class Test_IO_Splice < Test::Unit::TestCase def test_splice_out_offset str = 'abcde' rd, wr = IO.pipe - tmp = Tempfile.new(nil) + tmp = Tempfile.new('ruby_io_splice') assert_nothing_raised { wr.syswrite(str) } nr = IO.splice(rd.fileno, nil, tmp.fileno, 3, str.size, 0) @@ -52,7 +52,7 @@ class Test_IO_Splice < Test::Unit::TestCase def test_splice_nonblock rd, wr = IO.pipe - tmp = Tempfile.new(nil) + tmp = Tempfile.new('ruby_io_splice') assert_raises(Errno::EAGAIN) { IO.splice(rd.fileno, nil, tmp.fileno, 0, 5, IO::Splice::F_NONBLOCK) @@ -61,7 +61,7 @@ class Test_IO_Splice < Test::Unit::TestCase def test_splice_eof rd, wr = IO.pipe - tmp = Tempfile.new(nil) + tmp = Tempfile.new('ruby_io_splice') wr.syswrite 'abc' wr.close |