Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unix: fix IoctlGetPtmget get empty ptsname on NetBSD #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion unix/syscall_netbsd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ func TestIoctlPtmget(t *testing.T) {
t.Fatalf("IoctlGetPtmget: %v\n", err)
}

t.Logf("sfd = %v, ptsname = %v", ptm.Sfd, unix.ByteSliceToString(ptm.Sn[:]))
ptsname := unix.ByteSliceToString(ptm.Sn[:])
if ptsname == "" {
t.Fatalf("IoctlGetPtmget: ptsname is empty string\n")
}

t.Logf("sfd = %v, ptsname = %v", ptm.Sfd, ptsname)
}

func TestStatvfs(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions unix/ztypes_netbsd_386.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions unix/ztypes_netbsd_amd64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions unix/ztypes_netbsd_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.