diff options
author | Samuel Williams <[email protected]> | 2023-05-27 18:48:47 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2023-05-27 18:48:47 +0900 |
commit | bf1bc5362e5edb2321665e9ce7c5c4e2e7d9f5ef (patch) | |
tree | 6cd17e5c5f6caafc4471ce3e70b1599403107099 /test/ruby/test_io.rb | |
parent | c37ebfe08fb43242687e58a68628ade8101973d7 (diff) |
Improve `read`/`write`/`pread`/`pwrite` consistency. (#7860)
* Documentation consistency.
* Improve consistency of `pread`/`pwrite` implementation when given length.
* Remove HAVE_PREAD / HAVE_PWRITE - it is no longer optional.
Notes
Notes:
Merged-By: ioquatix <[email protected]>
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 8527a93b88..aad1530588 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -3976,7 +3976,7 @@ __END__ assert_raise(EOFError) { f.pread(1, f.size) } end } - end if IO.method_defined?(:pread) + end def test_pwrite make_tempfile { |t| @@ -3985,7 +3985,7 @@ __END__ assert_equal("ooo", f.pread(3, 4)) end } - end if IO.method_defined?(:pread) and IO.method_defined?(:pwrite) + end def test_select_exceptfds if Etc.uname[:sysname] == 'SunOS' |