From a204229cd828a74741ee7b5da9bf4794497f85ed Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 27 Nov 2017 19:32:31 +0100 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- unix/syscall_linux_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unix/syscall_linux_test.go b/unix/syscall_linux_test.go index a63830ba..c61ddeb4 100644 --- a/unix/syscall_linux_test.go +++ b/unix/syscall_linux_test.go @@ -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) {