]> Cypherpunks repositories - gostls13.git/commit
syscall: use libc-based ioctl for Ioctl in tests on darwin
authorTobias Klauser <tklauser@distanz.ch>
Tue, 22 Sep 2020 07:19:04 +0000 (09:19 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 22 Sep 2020 18:05:58 +0000 (18:05 +0000)
commitd140c357442471ca0d56615811fb4226e99fadd5
tree30bcad7a5d9e2fcd23560dbd1f25df344ceafa6b
parent095f66f662ac73e2aafbc369c59fc3870eb9b86f
syscall: use libc-based ioctl for Ioctl in tests on darwin

Direct syscalls are no longer supported on darwin, instead wrap the
existing func ioctl for tests.

Change-Id: Ie2c5b6e5f54e992f4d6b21513ca8f89fcf28ef10
Reviewed-on: https://go-review.googlesource.com/c/go/+/256219
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/export_darwin_test.go [new file with mode: 0644]
src/syscall/export_unix_test.go