-/*
+/*
Unix SMB/CIFS implementation.
SMB torture tester
Copyright (C) Andrew Tridgell 1997-2003
Copyright (C) Jelmer Vernooij 2006-2008
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
}
static bool run_matching(struct torture_context *torture,
- const char *prefix,
+ const char *prefix,
const char *expr,
const char **restricted,
struct torture_suite *suite,
"run async tests", NULL},
{"num-async", 0, POPT_ARG_INT, &torture_numasync, 0,
"number of simultaneous async requests", NULL},
- {"maximum-runtime", 0, POPT_ARG_INT, &max_runtime, 0,
+ {"maximum-runtime", 0, POPT_ARG_INT, &max_runtime, 0,
"set maximum time for smbtorture to live", "seconds"},
{"extra-user", 0, POPT_ARG_STRING, NULL, OPT_EXTRA_USER,
"extra user credentials", NULL},
if (extra_module != NULL) {
init_module_fn fn = load_module(poptGetOptArg(pc), false, NULL);
- if (fn == NULL)
+ if (fn == NULL)
d_printf("Unable to load module from %s\n", poptGetOptArg(pc));
else {
status = fn(mem_ctx);
if (NT_STATUS_IS_ERR(status)) {
- d_printf("Error initializing module %s: %s\n",
+ d_printf("Error initializing module %s: %s\n",
poptGetOptArg(pc), nt_errstr(status));
}
}
- } else {
+ } else {
torture_init(mem_ctx);
}
if (torture_seed == 0) {
torture_seed = time(NULL);
- }
+ }
printf("Using seed %d\n", torture_seed);
srandom(torture_seed);