]> Cypherpunks repositories - gostls13.git/commitdiff
os: remove non-constant format string in t.Errorf call
authorTim King <taking@google.com>
Tue, 6 Aug 2024 17:06:39 +0000 (10:06 -0700)
committerTim King <taking@google.com>
Tue, 6 Aug 2024 17:30:36 +0000 (17:30 +0000)
Fixes #68744

Change-Id: I12db785fc21c18db69d57cf91e2190b4a3df2484
Reviewed-on: https://go-review.googlesource.com/c/go/+/603515
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/os/os_test.go

index 46c4f138c3819c41c7d9100381b82e5003bbedc2..e42179538077c443f903deb874ca4d0f141efec7 100644 (file)
@@ -1533,10 +1533,10 @@ func testChtimes(t *testing.T, name string) {
                                t.Log(errormsg)
                                t.Log("Known NetBSD issue (atime not changed on fs mounted with noatime); ignoring.")
                        } else {
-                               t.Errorf(errormsg)
+                               t.Error(errormsg)
                        }
                default:
-                       t.Errorf(errormsg)
+                       t.Error(errormsg)
                }
        }