Skip to content

Commit

Permalink
packetdrill: check accepted fd instead of listen fd
Browse files Browse the repository at this point in the history
It makes more sense to check the acceptd fd instead of listen fd in this
test case.

Fixes google#70.

Signed-off-by: Jianfeng Tan <henry.tjf@antgroup.com>
  • Loading branch information
tanjianfeng committed Dec 18, 2022
1 parent 79e02ce commit b52e928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtests/net/tcp/inq/server.pkt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b52e928

Please sign in to comment.