1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

torture: add torture comment output of name/ip to WinsBy{Ip,Name} tests

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Michael Adam
2016-01-09 00:19:03 +01:00
parent 71ffd3b90b
commit 77d0fce7b7

View File

@ -405,6 +405,8 @@ static bool test_wbc_resolve_winsbyname(struct torture_context *tctx)
name = torture_setting_string(tctx, "host", NULL);
torture_comment(tctx, "test-WinsByName: host='%s'\n", name);
ret = wbcResolveWinsByName(name, &ip);
if (is_ipaddress(name)) {
@ -427,6 +429,8 @@ static bool test_wbc_resolve_winsbyip(struct torture_context *tctx)
host = torture_setting_string(tctx, "host", NULL);
torture_comment(tctx, "test-WinsByIp: host='%s'\n", host);
make_nbt_name_server(&nbt_name, host);
status = resolve_name_ex(lpcfg_resolve_context(tctx->lp_ctx),
@ -435,6 +439,8 @@ static bool test_wbc_resolve_winsbyip(struct torture_context *tctx)
talloc_asprintf(tctx,"Failed to resolve %s: %s",
nbt_name.name, nt_errstr(status)));
torture_comment(tctx, "test-WinsByIp: ip='%s'\n", ip);
ret = wbcResolveWinsByIP(ip, &name);
torture_assert_wbc_ok(tctx, ret, "wbcResolveWinsByIP for %s failed", ip);