Skip to content

Commit

Permalink
torture: add torture comment output of name/ip to WinsBy{Ip,Name} tests
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Adam <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>
  • Loading branch information
obnoxxx committed Jan 11, 2016
1 parent 71ffd3b commit 77d0fce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nsswitch/libwbclient/tests/wbclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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),
Expand All @@ -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);
Expand Down

0 comments on commit 77d0fce

Please sign in to comment.