]> Cypherpunks repositories - gostls13.git/commitdiff
os/user: align test file name and build tags
authorKir Kolyshkin <kolyshkin@gmail.com>
Thu, 11 Sep 2025 19:22:43 +0000 (12:22 -0700)
committerKirill Kolyshkin <kolyshkin@gmail.com>
Tue, 16 Sep 2025 20:15:03 +0000 (13:15 -0700)
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/os/user/cgo_lookup_unix_test.go [moved from src/os/user/cgo_unix_test.go with 80% similarity]

similarity index 80%
rename from src/os/user/cgo_unix_test.go
rename to src/os/user/cgo_lookup_unix_test.go
index 6d16aa20b30ec827cdc9837bd7b65896f254d525..cd225eb8df4f741005092f79ea907c996037c493 100644 (file)
@@ -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