From b52e928b8a1ed5e2bb662ca971368c660a00b2ac Mon Sep 17 00:00:00 2001 From: Jianfeng Tan Date: Sun, 18 Dec 2022 19:27:23 +0800 Subject: [PATCH] packetdrill: check accepted fd instead of listen fd It makes more sense to check the acceptd fd instead of listen fd in this test case. Fixes #70. Signed-off-by: Jianfeng Tan --- gtests/net/tcp/inq/server.pkt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtests/net/tcp/inq/server.pkt b/gtests/net/tcp/inq/server.pkt index 7436c9a2..0ac0c12e 100644 --- a/gtests/net/tcp/inq/server.pkt +++ b/gtests/net/tcp/inq/server.pkt @@ -46,5 +46,5 @@ msg_control=[{cmsg_level=SOL_TCP, cmsg_type=TCP_CM_INQ, cmsg_data=1}]}, 0) = 10000 -// Now, receive error. - +0 read(3, ..., 2000) = -1 ENOTCONN (Transport endpoint is not connected) +// Now, receive EOF. + +0 read(4, ..., 2000) = 0