From 9d0d82088a5bd385ceb63cb2f864e054638c69e1 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Mon, 31 Aug 2020 13:08:49 -0700 Subject: Remove __fuchsia__ defines These mostly guard linux-only headers; check for linux instead. PiperOrigin-RevId: 329362762 --- test/syscalls/linux/raw_socket.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'test/syscalls/linux/raw_socket.cc') diff --git a/test/syscalls/linux/raw_socket.cc b/test/syscalls/linux/raw_socket.cc index 8d6e5c913..54709371c 100644 --- a/test/syscalls/linux/raw_socket.cc +++ b/test/syscalls/linux/raw_socket.cc @@ -13,9 +13,7 @@ // limitations under the License. #include -#ifndef __fuchsia__ #include -#endif // __fuchsia__ #include #include #include @@ -815,8 +813,6 @@ void RawSocketTest::ReceiveBufFrom(int sock, char* recv_buf, ASSERT_NO_FATAL_FAILURE(RecvNoCmsg(sock, recv_buf, recv_buf_len)); } -#ifndef __fuchsia__ - TEST_P(RawSocketTest, SetSocketDetachFilterNoInstalledFilter) { // TODO(gvisor.dev/2746): Support SO_ATTACH_FILTER/SO_DETACH_FILTER. if (IsRunningOnGvisor()) { @@ -838,8 +834,6 @@ TEST_P(RawSocketTest, GetSocketDetachFilter) { SyscallFailsWithErrno(ENOPROTOOPT)); } -#endif // __fuchsia__ - // AF_INET6+SOCK_RAW+IPPROTO_RAW sockets can be created, but not written to. TEST(RawSocketTest, IPv6ProtoRaw) { SKIP_IF(!ASSERT_NO_ERRNO_AND_VALUE(HaveCapability(CAP_NET_RAW))); -- cgit v1.2.3