Skip to content

Commit f9599da

Browse files
tklausergopherbot
authored andcommitted
unix: use ByteSliceToString in TestIoctlPtmget
Change-Id: I42cb5be80246af76cca9b6a09c6cb85bc07ab081 Reviewed-on: https://go-review.googlesource.com/c/sys/+/407254 Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Tobias Klauser <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent dcacdad commit f9599da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

unix/syscall_netbsd_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package unix_test
66

77
import (
8-
"bytes"
98
"os"
109
"testing"
1110

@@ -39,7 +38,7 @@ func TestIoctlPtmget(t *testing.T) {
3938
t.Fatalf("IoctlGetPtmget: %v\n", err)
4039
}
4140

42-
t.Logf("sfd = %v, ptsname = %v", ptm.Sfd, string(ptm.Sn[:bytes.IndexByte(ptm.Sn[:], 0)]))
41+
t.Logf("sfd = %v, ptsname = %v", ptm.Sfd, unix.ByteSliceToString(ptm.Sn[:]))
4342
}
4443

4544
func TestStatvfs(t *testing.T) {

0 commit comments

Comments
 (0)