ipv4, ipv6: enable additional tests on darwin and ios

These tests seem to work on all supported macOS and iOS versions, so
enable them on darwin and ios.

Change-Id: I95a221e4a7bc925bf1f83b763711f8f9fea03daf
Reviewed-on: https://go-review.googlesource.com/c/net/+/419938
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
diff --git a/ipv4/unicast_test.go b/ipv4/unicast_test.go
index 44d4f28..12bbdb4 100644
--- a/ipv4/unicast_test.go
+++ b/ipv4/unicast_test.go
@@ -161,11 +161,6 @@
 			t.Fatal(err)
 		}
 		if n, _, _, err := p.ReadFrom(rb); err != nil {
-			switch runtime.GOOS {
-			case "darwin", "ios": // older darwin kernels have some limitation on receiving icmp packet through raw socket
-				t.Logf("not supported on %s", runtime.GOOS)
-				continue
-			}
 			t.Fatal(err)
 		} else {
 			m, err := icmp.ParseMessage(iana.ProtocolICMP, rb[:n])
@@ -251,11 +246,6 @@
 			t.Fatal(err)
 		}
 		if _, b, _, err := r.ReadFrom(rb); err != nil {
-			switch runtime.GOOS {
-			case "darwin", "ios": // older darwin kernels have some limitation on receiving icmp packet through raw socket
-				t.Logf("not supported on %s", runtime.GOOS)
-				continue
-			}
 			t.Fatal(err)
 		} else {
 			m, err := icmp.ParseMessage(iana.ProtocolICMP, b)
diff --git a/ipv6/unicast_test.go b/ipv6/unicast_test.go
index be45a5d..fe1d44d 100644
--- a/ipv6/unicast_test.go
+++ b/ipv6/unicast_test.go
@@ -195,11 +195,6 @@
 			t.Fatal(err)
 		}
 		if n, _, _, err := p.ReadFrom(rb); err != nil {
-			switch runtime.GOOS {
-			case "darwin", "ios": // older darwin kernels have some limitation on receiving icmp packet through raw socket
-				t.Logf("not supported on %s", runtime.GOOS)
-				continue
-			}
 			t.Fatal(err)
 		} else {
 			if m, err := icmp.ParseMessage(iana.ProtocolIPv6ICMP, rb[:n]); err != nil {