git: 07db0309378c - main - tests/socket_afinet: make multibind test more verbose on failure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 01 Jul 2026 05:48:48 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=07db0309378cd85ba72992e838675ba57abdca75
commit 07db0309378cd85ba72992e838675ba57abdca75
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-07-01 05:48:23 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-07-01 05:48:23 +0000
tests/socket_afinet: make multibind test more verbose on failure
---
tests/sys/netinet/socket_afinet.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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);
}