mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
unix: remove outdated comment in TestUname, omit string conversion
Follow the review comments by Brad in CL 79918. Change-Id: Iedb27aa9582502a90231778f5032a2e0109a4621 Reviewed-on: https://go-review.googlesource.com/80015 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
096928d58b
commit
a204229cd8
@@ -191,8 +191,7 @@ func TestUname(t *testing.T) {
|
||||
t.Fatalf("Uname: %v", err)
|
||||
}
|
||||
|
||||
// conversion from []byte to string, golang.org/issue/20753
|
||||
t.Logf("OS: %s/%s %s", string(utsname.Sysname[:]), string(utsname.Machine[:]), string(utsname.Release[:]))
|
||||
t.Logf("OS: %s/%s %s", utsname.Sysname[:], utsname.Machine[:], utsname.Release[:])
|
||||
}
|
||||
|
||||
func TestFstatat(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user