diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index f1fc3233b6..d877f5e832 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2112,5 +2112,14 @@ End f1.ioctl(0x80045200, entropy_count) } end + + buf = '' + assert_nothing_raised do + fionread = 0x541B + File.open(__FILE__){|f1| + f1.ioctl(fionread, buf) + } + end + assert_equal(File.size(__FILE__), buf.unpack('i!')[0]) end end |