diff options
author | Elias Naur <mail@eliasnaur.com> | 2019-09-07 21:15:55 +0200 |
---|---|---|
committer | Elias Naur <mail@eliasnaur.com> | 2019-09-07 21:44:30 +0000 |
commit | a5025fdcde3f4f8442052eac902217f8c55ec3e4 (patch) | |
tree | c0565b3ca1a790a7078ba0bb16b5ca29174bbe53 /src/log | |
parent | 78d99491038143de569c3b7706e904ed16c37793 (diff) | |
download | go-a5025fdcde3f4f8442052eac902217f8c55ec3e4.tar.gz go-a5025fdcde3f4f8442052eac902217f8c55ec3e4.zip |
log/syslog: skip unsupported tests on iOS
CL 193843 disabled sysctl on iOS. This change disables two tests that
rely on sysctl.
Updates #34133
Change-Id: I7c569a1992a50ad6027a294c1fd535cccddcfc4e
Reviewed-on: https://go-review.googlesource.com/c/go/+/193844
Run-TryBot: Elias Naur <mail@eliasnaur.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Diffstat (limited to 'src/log')
-rw-r--r-- | src/log/syslog/syslog_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/log/syslog/syslog_test.go b/src/log/syslog/syslog_test.go index 447654a874..8a28d67c98 100644 --- a/src/log/syslog/syslog_test.go +++ b/src/log/syslog/syslog_test.go @@ -134,6 +134,9 @@ 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 @@ -272,6 +275,9 @@ 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 |