mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-02 22:54:52 +00:00
socket tests: improve error message
This commit is contained in:
parent
5bdf8150cd
commit
702c481847
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue