]> Cypherpunks repositories - gostls13.git/commit
os/user: don't skip TestLookupGroup if supported
authorKir Kolyshkin <kolyshkin@gmail.com>
Wed, 23 Jun 2021 03:26:31 +0000 (20:26 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 25 Aug 2021 03:07:54 +0000 (03:07 +0000)
commit41b99dab0f263bd3fe5c2592f1c40735dcaa016a
treef5eb748237ee85110a683ffa77158d59320f9b17
parentde1c934b9709728b15cc821a055155ee13e1d0ab
os/user: don't skip TestLookupGroup if supported

CL 37664 implemented this functionality, yet the tests were skipped.

Introduce and use additional variable groupListImplemented to
distinguish between these cases and enable TestLookupGroup for
supported configurations (which looks like all but plan9).

Change-Id: Iabaa7f08b4551dc67e67bdb6e715f15bb20d6218
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/330751
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/os/user/lookup_plan9.go
src/os/user/lookup_stubs.go
src/os/user/lookup_unix.go
src/os/user/user.go
src/os/user/user_test.go