mirror of https://github.com/golang/go.git
os: rm reiserfs exception from TestSeek
This exception was originally added by CL 152108 in November 2009. I'm pretty sure no one uses reiserfs nowadays (and if someone does, this bug must have been fixed by now). Change-Id: I274ebe2f7910cab81b70a44b2da3f6fe761073bc Reviewed-on: https://go-review.googlesource.com/c/go/+/591417 Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
5187baeb4e
commit
60e9cf0f93
|
|
@ -1792,13 +1792,6 @@ func TestSeek(t *testing.T) {
|
|||
for i, tt := range tests {
|
||||
off, err := f.Seek(tt.in, tt.whence)
|
||||
if off != tt.out || err != nil {
|
||||
if e, ok := err.(*PathError); ok && e.Err == syscall.EINVAL && tt.out > 1<<32 && runtime.GOOS == "linux" {
|
||||
mounts, _ := ReadFile("/proc/mounts")
|
||||
if strings.Contains(string(mounts), "reiserfs") {
|
||||
// Reiserfs rejects the big seeks.
|
||||
t.Skipf("skipping test known to fail on reiserfs; https://golang.org/issue/91")
|
||||
}
|
||||
}
|
||||
t.Errorf("#%d: Seek(%v, %v) = %v, %v want %v, nil", i, tt.in, tt.whence, off, err, tt.out)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue