]> Cypherpunks repositories - gostls13.git/commitdiff
os: rm reiserfs exception from TestSeek
authorKir Kolyshkin <kolyshkin@gmail.com>
Sun, 9 Jun 2024 20:46:40 +0000 (13:46 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 20 Aug 2024 16:09:42 +0000 (16:09 +0000)
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>

src/os/os_test.go

index 538a75f912e0fe8e001b6743435c0e27a5872fd0..70f6aa117361bbbbb4456267c0c7ca2729d60c31 100644 (file)
@@ -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)
                }
        }