socket tests: improve error message

This commit is contained in:
Gleb Smirnoff 2024-02-01 13:37:26 -08:00
parent 5bdf8150cd
commit 702c481847

View file

@ -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);
}