diff options
Diffstat (limited to 'source4/torture/nbench')
-rw-r--r-- | source4/torture/nbench/nbench.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/torture/nbench/nbench.c b/source4/torture/nbench/nbench.c index 7d29349441..8e19461b95 100644 --- a/source4/torture/nbench/nbench.c +++ b/source4/torture/nbench/nbench.c @@ -152,6 +152,9 @@ again: done: fclose(f); + if (torture_nprocs == 1) { + smbcli_deltree(cli->tree, "\\clients"); + } if (!torture_close_connection(cli)) { correct = False; } @@ -200,7 +203,9 @@ BOOL torture_nbench(void) torture_create_procs(run_netbench, &correct); alarm(0); - smbcli_deltree(cli->tree, "\\clients"); + if (torture_nprocs > 1) { + smbcli_deltree(cli->tree, "\\clients"); + } printf("\nThroughput %g MB/sec\n", nbio_result()); return correct; |