s4-smbtorture: Make test names lowercase and dot-separated.
[metze/samba/wip.git] / source4 / torture / nbt / winsbench.c
index bea3d4f9cff8d604ddb0e67a436dcd0815cb6576..aff620878c8f1b46d3fc749f2e722999092d23f6 100644 (file)
@@ -225,7 +225,7 @@ static void generate_request(struct nbt_name_socket *nbtsock, struct wins_state
 */
 static bool bench_wins(struct torture_context *tctx)
 {
-       struct nbt_name_socket *nbtsock = nbt_name_socket_init(tctx, tctx->ev, lp_iconv_convenience(tctx->lp_ctx));
+       struct nbt_name_socket *nbtsock = nbt_name_socket_init(tctx, tctx->ev);
        int num_sent=0;
        struct timeval tv = timeval_current();
        bool ret = true;
@@ -245,8 +245,8 @@ static bool bench_wins(struct torture_context *tctx)
        state->num_names = torture_entries;
        state->registered = talloc_zero_array(state, bool, state->num_names);
        state->wins_server = address;
-       state->wins_port = lp_nbt_port(tctx->lp_ctx);
-       load_interfaces(tctx, lp_interfaces(tctx->lp_ctx), &ifaces);
+       state->wins_port = lpcfg_nbt_port(tctx->lp_ctx);
+       load_interfaces(tctx, lpcfg_interfaces(tctx->lp_ctx), &ifaces);
        state->my_ip = talloc_strdup(tctx, iface_best_ip(ifaces, address));
        state->ttl = timelimit;
 
@@ -292,8 +292,7 @@ static bool bench_wins(struct torture_context *tctx)
 */
 struct torture_suite *torture_bench_wins(TALLOC_CTX *mem_ctx)
 {
-       struct torture_suite *suite = torture_suite_create(mem_ctx, 
-                                                          "BENCH-WINS");
+       struct torture_suite *suite = torture_suite_create(mem_ctx, "bench-wins");
 
        torture_suite_add_simple_test(suite, "wins", bench_wins);