Use the wheel group in the root-group lookup test on BSDs

This commit is contained in:
Viktor Liu
2026-08-20 16:39:55 +02:00
parent 95743010a2
commit 88ddf4240e

View File

@@ -253,7 +253,8 @@ func TestGroupMembersFromFileUnknownGroup(t *testing.T) {
// answers for it.
func TestGroupMembers_RootGroup(t *testing.T) {
rootGroup := "root"
if runtime.GOOS == "darwin" {
switch runtime.GOOS {
case "darwin", "dragonfly", "freebsd", "netbsd", "openbsd":
rootGroup = "wheel"
}