There's no need to specifically check for runtime.GOOS as there's
already a generic mechanism for that.
Change-Id: I7125443ead456548bd503c5e71cd56e9eb30b446
Reviewed-on: https://go-review.googlesource.com/c/go/+/330750
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
)
func init() {
+ userImplemented = false
groupImplemented = false
}
func TestLookup(t *testing.T) {
checkUser(t)
- if runtime.GOOS == "plan9" {
- t.Skipf("Lookup not implemented on %q", runtime.GOOS)
- }
-
want, err := Current()
if err != nil {
t.Fatalf("Current: %v", err)
func TestLookupId(t *testing.T) {
checkUser(t)
- if runtime.GOOS == "plan9" {
- t.Skipf("LookupId not implemented on %q", runtime.GOOS)
- }
-
want, err := Current()
if err != nil {
t.Fatalf("Current: %v", err)