summaryrefslogtreecommitdiff
path: root/source4/torture/basic
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-26 18:24:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:36 -0500
commitd981c69a18599ce7848afc3e77ad8ab14e6efbe8 (patch)
tree614a6abfaf1c3a8618a81a8b744f48835840b4c4 /source4/torture/basic
parent3f6cf9672ba1d25f10cbd0bb8ce1525c592a8e78 (diff)
downloadsamba-d981c69a18599ce7848afc3e77ad8ab14e6efbe8.tar.gz
samba-d981c69a18599ce7848afc3e77ad8ab14e6efbe8.tar.bz2
samba-d981c69a18599ce7848afc3e77ad8ab14e6efbe8.zip
r24670: Use torture functions for settings.
(This used to be commit a6906676309f3b1bec1a69427e7ffd0a768061b8)
Diffstat (limited to 'source4/torture/basic')
-rw-r--r--source4/torture/basic/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/basic/misc.c b/source4/torture/basic/misc.c
index a98d34e3a8..b4584fcf58 100644
--- a/source4/torture/basic/misc.c
+++ b/source4/torture/basic/misc.c
@@ -660,7 +660,7 @@ static NTSTATUS benchrw_mkdir(struct torture_context *tctx,
/* open/create the files */
torture_comment(tctx, "Open File %d/%d\n",state->nr+1,
- lp_parm_int(-1, "torture", "nprocs", 4));
+ torture_setting_int(tctx, "nprocs", 4));
open_parms=talloc_zero(tctx, union smb_open);
NT_STATUS_HAVE_NO_MEMORY(open_parms);
open_parms->openx.level = RAW_OPEN_OPENX;
@@ -837,7 +837,7 @@ BOOL run_benchrw(struct torture_context *tctx)
union smb_mkdir parms;
int finished = 0;
BOOL success=True;
- int torture_nprocs = lp_parm_int(-1, "torture", "nprocs", 4);
+ int torture_nprocs = torture_setting_int(tctx, "nprocs", 4);
torture_comment(tctx, "Start BENCH-READWRITE num_ops=%d "
"num_nprocs=%d\n",