diff options
author | Eric Wong <e+absinthe@yhbt.net> | 2010-09-27 15:09:43 -0700 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2010-09-27 23:18:50 +0000 |
commit | 95d2eae6a4da34c504427af6ae0ab4c8c70c0ce5 (patch) | |
tree | cf0c18dba57c7f82adad1508950410258532bef7 | |
parent | 0806cac89f9d0e169b6c1e4da68c1ad66daa23ae (diff) | |
download | kgio-95d2eae6a4da34c504427af6ae0ab4c8c70c0ce5.tar.gz |
Some older Rubies may not behave correctly otherwise
-rw-r--r-- | test/lib_read_write.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib_read_write.rb b/test/lib_read_write.rb index fa7ccf0..d39ccee 100644 --- a/test/lib_read_write.rb +++ b/test/lib_read_write.rb @@ -114,12 +114,14 @@ module LibReadWriteTest rv = @wr.kgio_trywrite(buf) assert_kind_of String, rv assert rv.size < buf.size + @rd.nonblock = false assert_equal(buf, (rv + @rd.read(buf.size - rv.size))) end def test_monster_write buf = "." * 1024 * 1024 * 10 thr = Thread.new { @wr.kgio_write(buf) } + @rd.nonblock = false readed = @rd.read(buf.size) thr.join assert_nil thr.value |