diff options
author | Michael Adam <obnox@samba.org> | 2016-01-09 00:19:03 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2016-01-11 12:25:26 +0100 |
commit | 77d0fce7b75f6cb4b43850fd914829b0a94316c6 (patch) | |
tree | 992b5e042719d1634313e5d78d7e62bf9753912b /nsswitch | |
parent | 71ffd3b90b5c19ba8596dee86ed49881a22371cc (diff) | |
download | samba-77d0fce7b75f6cb4b43850fd914829b0a94316c6.tar.gz |
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>
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/libwbclient/tests/wbclient.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/tests/wbclient.c b/nsswitch/libwbclient/tests/wbclient.c index d482ed216a5..4d04ca9c780 100644 --- a/nsswitch/libwbclient/tests/wbclient.c +++ b/nsswitch/libwbclient/tests/wbclient.c @@ -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); |