From e939659e439c153df492f9e76968d723687da353 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Feb 2008 23:05:44 +1100 Subject: make the multiplier in the RAW-OFFLINE test settable (This used to be commit f4b363d7a65023c816264b58d6f3f07730b43c0c) --- source4/torture/raw/offline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/torture/raw') diff --git a/source4/torture/raw/offline.c b/source4/torture/raw/offline.c index 754185ec62..1340692faa 100644 --- a/source4/torture/raw/offline.c +++ b/source4/torture/raw/offline.c @@ -42,6 +42,7 @@ static int numstates; static int num_connected; static int test_failed; extern int torture_numops; +extern int torture_entries; static bool test_finished; enum offline_op {OP_LOADFILE, OP_SAVEFILE, OP_SETOFFLINE, OP_GETOFFLINE, OP_ENDOFLIST}; @@ -395,7 +396,7 @@ bool torture_test_offline(struct torture_context *torture) progress = torture_setting_bool(torture, "progress", true); nconnections = torture_setting_int(torture, "nprocs", 4); - numstates = nconnections * 5; + numstates = nconnections * torture_entries; state = talloc_zero_array(mem_ctx, struct offline_state, numstates); -- cgit