mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
tests/socket_afinet: make multibind test more verbose on failure
This commit is contained in:
1 parent
51eb574064
commit
07db030937
1 file changed
+5
-1
@@ -492,7 +492,11 @@ multibind_test(const atf_tc_t *tc, int domain, int type)
|
||||
* Multi-binding is only allowed when both
|
||||
* sockets have the same owner.
|
||||
*/
|
||||
ATF_REQUIRE(res == BIND_FAILED);
|
||||
ATF_REQUIRE_MSG(res == BIND_FAILED,
|
||||
"domain %u type %u opts %u:%u: "
|
||||
"result %u (expected %u)",
|
||||
domain, type, opts[opti], opts[optj],
|
||||
res, BIND_FAILED);
|
||||
}
|
||||
ATF_REQUIRE(close(s) == 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user