tests/socket_afinet: make multibind test more verbose on failure

This commit is contained in:
Gleb Smirnoff committed 2026-06-30 22:48:23 -07:00
1 parent 51eb574064
commit 07db030937
1 file changed
+5 -1
+5 -1
View File
@@ -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);
}