From 796ea3bc2e0fc9ef635f0a5a9dea8468fb267e18 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 11 Sep 2025 12:22:43 -0700 Subject: [PATCH] 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 --- src/os/user/{cgo_unix_test.go => cgo_lookup_unix_test.go} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/os/user/{cgo_unix_test.go => cgo_lookup_unix_test.go} (80%) 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 -- 2.52.0