From: Tim King Date: Tue, 6 Aug 2024 17:06:39 +0000 (-0700) Subject: os: remove non-constant format string in t.Errorf call X-Git-Tag: go1.24rc1~1266 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b62342216d632d972f1438b4f542f89c4b4a331d;p=gostls13.git os: remove non-constant format string in t.Errorf call Fixes #68744 Change-Id: I12db785fc21c18db69d57cf91e2190b4a3df2484 Reviewed-on: https://go-review.googlesource.com/c/go/+/603515 Reviewed-by: Robert Griesemer LUCI-TryBot-Result: Go LUCI --- diff --git a/src/os/os_test.go b/src/os/os_test.go index 46c4f138c3..e421795380 100644 --- a/src/os/os_test.go +++ b/src/os/os_test.go @@ -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) } }