From: Kir Kolyshkin Date: Thu, 11 Sep 2025 19:22:43 +0000 (-0700) Subject: os/user: align test file name and build tags X-Git-Tag: go1.26rc1~848 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=796ea3bc2e0fc9ef635f0a5a9dea8468fb267e18;p=gostls13.git os/user: align test file name and build tags TestNegativeUid tests code in cgo_lookup_unix.go, so let's use the very same go:build line for the test file, and rename the test file accordingly. Change-Id: Iee3dbc25aeb8a7659c734d97dde3e9c670e80fae Reviewed-on: https://go-review.googlesource.com/c/go/+/702976 LUCI-TryBot-Result: Go LUCI Reviewed-by: Mark Freeman Reviewed-by: Ian Lance Taylor Reviewed-by: Michael Knyszek --- diff --git a/src/os/user/cgo_unix_test.go b/src/os/user/cgo_lookup_unix_test.go similarity index 80% rename from src/os/user/cgo_unix_test.go rename to src/os/user/cgo_lookup_unix_test.go index 6d16aa20b3..cd225eb8df 100644 --- a/src/os/user/cgo_unix_test.go +++ b/src/os/user/cgo_lookup_unix_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build (darwin || dragonfly || freebsd || (!android && linux) || netbsd || openbsd || solaris) && cgo && !osusergo +//go:build (cgo || darwin) && !osusergo && unix && !android package user