summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux
diff options
context:
space:
mode:
authorNayana Bidari <nybidari@google.com>2020-12-15 11:04:49 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-15 11:07:48 -0800
commitb15acae9a6e20a09a97b5fdfee5850469ff3b0ea (patch)
tree825010f5cfff56fd8d2e7dd98ccd58765d0949c3 /test/syscalls/linux
parent4e963c99ce23ce6838b4bca351f767460601f34a (diff)
Fix error code for connect in raw sockets.
PiperOrigin-RevId: 347650354
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r--test/syscalls/linux/raw_socket.cc2
1 files changed, 1 insertions, 1 deletions
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<struct sockaddr*>(&addr),
sizeof(sockaddr_in6)),
- SyscallFailsWithErrno(EINVAL));
+ SyscallFailsWithErrno(EAFNOSUPPORT));
}
INSTANTIATE_TEST_SUITE_P(