mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Assert TCP_INFO size before checking content
Also sync syscall test expectations on Fuchisa. PiperOrigin-RevId: 355163492
This commit is contained in:
committed by
gVisor bot
parent
5fa683ffdf
commit
00d21b9ae0
@@ -88,6 +88,7 @@ TEST_P(TCPSocketPairTest, CheckTcpInfoFields) {
|
||||
socklen_t optLen = sizeof(opt);
|
||||
ASSERT_THAT(getsockopt(sockets->first_fd(), SOL_TCP, TCP_INFO, &opt, &optLen),
|
||||
SyscallSucceeds());
|
||||
ASSERT_EQ(optLen, sizeof(opt));
|
||||
|
||||
// Validates the received tcp_info fields.
|
||||
EXPECT_EQ(opt.tcpi_ca_state, TCP_CA_OPEN);
|
||||
|
||||
Reference in New Issue
Block a user