]> Cypherpunks repositories - gostls13.git/commit
os: add TestReadAtOffset
authorDavid du Colombier <0intro@gmail.com>
Tue, 19 Apr 2016 18:59:03 +0000 (20:59 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 10 May 2016 03:55:12 +0000 (03:55 +0000)
commit3d82432288885696b01357e921ec00116291a790
tree1c1aea32bf52a13a1cec40549a7eb1712b16987b
parentf05c3aa24d815cd3869153750c9875e35fc48a6e
os: add TestReadAtOffset

In the Plan 9 kernel, there used to be a bug in the implementation of
the pread syscall, where the channel offset was erroneously updated after
calling pread on a file.

This test verifies that ReadAt is behaving as expected.

Fixes #14534.

Change-Id: Ifc9fd40a1f94879ee7eb09b2ffc369aa2bec2926
Reviewed-on: https://go-review.googlesource.com/22244
Run-TryBot: David du Colombier <0intro@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/os/os_test.go