diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-02-07 23:05:44 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-02-07 23:05:44 +1100 |
commit | e939659e439c153df492f9e76968d723687da353 (patch) | |
tree | cd9cc5cef6959b3914b20cd33a047b667070fe0b /source4/torture/raw/offline.c | |
parent | 6ca23e307495c26782ee5c716890fe4f4be804cd (diff) | |
download | samba-e939659e439c153df492f9e76968d723687da353.tar.gz |
make the multiplier in the RAW-OFFLINE test settable
(This used to be commit f4b363d7a65023c816264b58d6f3f07730b43c0c)
Diffstat (limited to 'source4/torture/raw/offline.c')
-rw-r--r-- | source4/torture/raw/offline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/raw/offline.c b/source4/torture/raw/offline.c index 754185ec62f..1340692faa7 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); |