From b15acae9a6e20a09a97b5fdfee5850469ff3b0ea Mon Sep 17 00:00:00 2001 From: Nayana Bidari Date: Tue, 15 Dec 2020 11:04:49 -0800 Subject: Fix error code for connect in raw sockets. PiperOrigin-RevId: 347650354 --- test/syscalls/linux/raw_socket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/syscalls') diff --git a/test/syscalls/linux/raw_socket.cc b/test/syscalls/linux/raw_socket.cc index c108c45df..955bcee4b 100644 --- a/test/syscalls/linux/raw_socket.cc +++ b/test/syscalls/linux/raw_socket.cc @@ -894,7 +894,7 @@ TEST_P(RawSocketTest, ConnectOnIPv6Socket) { ASSERT_THAT(connect(sock, reinterpret_cast(&addr), sizeof(sockaddr_in6)), - SyscallFailsWithErrno(EINVAL)); + SyscallFailsWithErrno(EAFNOSUPPORT)); } INSTANTIATE_TEST_SUITE_P( -- cgit v1.2.3