summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-06-01 23:41:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:23 -0500
commit2825b0cddffae364f32fcb5303328be704c5ccbf (patch)
tree0710efc86e36e9c4354c9039eeb560653fa2fbc7
parentb60ea955471ef8a0c733a7eb9114787030ccae60 (diff)
downloadsamba-2825b0cddffae364f32fcb5303328be704c5ccbf.tar.gz
samba-2825b0cddffae364f32fcb5303328be704c5ccbf.tar.bz2
samba-2825b0cddffae364f32fcb5303328be704c5ccbf.zip
r7180: Missed fixing the shutdown for 1 process...
Jeremy. (This used to be commit 997e1405cbd4535e18c4729c77ec5de4237f78d7)
-rw-r--r--source4/torture/nbench/nbench.c7
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;