diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-23 13:08:46 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-23 15:12:15 +0000 |
commit | f91e895de368390a1aa75c3eb55d2b8451adc843 (patch) | |
tree | dcc11b3d34b50fdbb5c3b32767a1d7ef1b2f297b /src/log | |
parent | 9fc41cd697634c1a292750a66208ebba626efd5e (diff) | |
download | go-f91e895de368390a1aa75c3eb55d2b8451adc843.tar.gz go-f91e895de368390a1aa75c3eb55d2b8451adc843.zip |
syscall: reenable sysctl on iOS
This was disabled due to a report that the App Store rejects the symbol
__sysctl. However, we use the sysctl symbol, which is fine. The __sysctl
symbol is used by x/sys/unix, which needs fixing instead. So, this
commit reenables sysctl on iOS, so that things like net.InterfaceByName
can work again.
This reverts CL 193843, CL 193844, CL 193845, and CL 193846.
Fixes #35101
Updates #34133
Updates #35103
Change-Id: Ib8eb9f87b81db24965b0de29d99eb52887c7c60a
Reviewed-on: https://go-review.googlesource.com/c/go/+/202778
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/log')
-rw-r--r-- | src/log/syslog/syslog_test.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/log/syslog/syslog_test.go b/src/log/syslog/syslog_test.go index dd1a1c4988..8df8ebbf58 100644 --- a/src/log/syslog/syslog_test.go +++ b/src/log/syslog/syslog_test.go @@ -134,9 +134,6 @@ func startServer(n, la string, done chan<- string) (addr string, sock io.Closer, } func TestWithSimulated(t *testing.T) { - if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") { - t.Skipf("sysctl is not supported on iOS") - } t.Parallel() msg := "Test 123" var transport []string @@ -275,9 +272,6 @@ func check(t *testing.T, in, out string) { } func TestWrite(t *testing.T) { - if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") { - t.Skipf("sysctl is not supported on iOS") - } t.Parallel() tests := []struct { pri Priority |