/* run a test that simulates an approximate netbench client load */
static BOOL run_netbench(struct smbcli_state *cli, int client)
{
+ extern int torture_nprocs;
int i;
pstring line;
char *cname;
const char *p;
BOOL correct = True;
+ if (torture_nprocs == 1) {
+ if (!torture_setup_dir(cli, "\\clients")) {
+ return False;
+ }
+ }
+
nb_setup(cli, client);
asprintf(&cname, "client%d", client+1);
loadfile = "client.txt";
}
- if (!torture_open_connection(&cli)) {
- return False;
- }
+ if (torture_nprocs > 1) {
+ if (!torture_open_connection(&cli)) {
+ return False;
+ }
- if (!torture_setup_dir(cli, "\\clients")) {
- return False;
+ if (!torture_setup_dir(cli, "\\clients")) {
+ return False;
+ }
}
nbio_shmem(torture_nprocs, timelimit, warmup);