aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2026-07-01 05:48:23 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2026-07-01 05:48:23 +0000
commit07db0309378cd85ba72992e838675ba57abdca75 (patch)
tree4c76cc6d5bd060c5c75847db5f0b946cd1d3e7c3
parent51eb574064802d7697a55b502cc169eeb43fba58 (diff)
tests/socket_afinet: make multibind test more verbose on failure
-rw-r--r--tests/sys/netinet/socket_afinet.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/sys/netinet/socket_afinet.c b/tests/sys/netinet/socket_afinet.c
index 1be9cada3fb3..98cc2be00f25 100644
--- a/tests/sys/netinet/socket_afinet.c
+++ b/tests/sys/netinet/socket_afinet.c
@@ -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);
}