torture: add torture comment output of name/ip to WinsBy{Ip,Name} tests
authorMichael Adam <obnox@samba.org>
Fri, 8 Jan 2016 23:19:03 +0000 (00:19 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:26 +0000 (12:25 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
nsswitch/libwbclient/tests/wbclient.c

index d482ed216a5348dbdb46c3b64184ef250a5b4ccc..4d04ca9c780543614e263bd270df6095cdb703ab 100644 (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);