git: 702c48184718 - main - socket tests: improve error message
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Feb 2024 21:44:45 UTC
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=702c481847181005c9717ad04ec79efb32627089 commit 702c481847181005c9717ad04ec79efb32627089 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2024-02-01 21:37:26 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2024-02-01 21:37:26 +0000 socket tests: improve error message --- tests/sys/kern/socket_msg_waitall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/kern/socket_msg_waitall.c b/tests/sys/kern/socket_msg_waitall.c index e1e10a4c7886..4ad26b7419ba 100644 --- a/tests/sys/kern/socket_msg_waitall.c +++ b/tests/sys/kern/socket_msg_waitall.c @@ -50,7 +50,7 @@ close_test_client(void *arg) n = recv(s, buf, buflen, MSG_WAITALL); ATF_REQUIRE_MSG(n == (ssize_t)p->msglen, - "recv: %s", strerror(errno)); + "recv: got %zd expected %zd", n, (ssize_t)p->msglen); ATF_REQUIRE(close(s) == 0); }