diff options
| author | Joshua M. Clulow <josh.clulow@joyent.com> | 2019-04-29 13:50:49 +0000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-04-30 16:59:13 +0000 |
| commit | f686a2890b34996455c7d7aba9a0efba74b613f5 (patch) | |
| tree | d2f0348349a47f4697fb4dacdf687455cec4546a /src/net/interface_test.go | |
| parent | 0c9e0c257b121acae72b9419be64ce45196ef825 (diff) | |
| download | go-f686a2890b34996455c7d7aba9a0efba74b613f5.tar.xz | |
all: add new GOOS=illumos, split out of GOOS=solaris
Like GOOS=android which implies the "linux" build tag, GOOS=illumos
implies the "solaris" build tag. This lets the existing ecosystem of
packages still work on illumos, but still permits packages to start
differentiating between solaris and illumos.
Fixes #20603
Change-Id: I8f4eabf1a66060538dca15d7658c1fbc6c826622
Reviewed-on: https://go-review.googlesource.com/c/go/+/174457
Run-TryBot: Benny Siegert <bsiegert@gmail.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/net/interface_test.go')
| -rw-r--r-- | src/net/interface_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/interface_test.go b/src/net/interface_test.go index c6b514abce..fb6032fbc0 100644 --- a/src/net/interface_test.go +++ b/src/net/interface_test.go @@ -61,7 +61,7 @@ func TestInterfaces(t *testing.T) { t.Fatal(err) } switch runtime.GOOS { - case "solaris": + case "solaris", "illumos": if ifxi.Index != ifi.Index { t.Errorf("got %v; want %v", ifxi, ifi) } @@ -278,7 +278,7 @@ func checkUnicastStats(ifStats *ifStats, uniStats *routeStats) error { func checkMulticastStats(ifStats *ifStats, uniStats, multiStats *routeStats) error { switch runtime.GOOS { - case "aix", "dragonfly", "nacl", "netbsd", "openbsd", "plan9", "solaris": + case "aix", "dragonfly", "nacl", "netbsd", "openbsd", "plan9", "solaris", "illumos": default: // Test the existence of connected multicast route // clones for IPv4. Unlike IPv6, IPv4 multicast |
