dovecot: Use smaller test buffer sizes
dovecot at dovecot.org
dovecot at dovecot.org
Fri Feb 29 04:59:07 EET 2008
details: http://hg.dovecot.org/dovecot/rev/338ea1ecca5f
changeset: 7302:338ea1ecca5f
user: Timo Sirainen <tss at iki.fi>
date: Fri Feb 29 05:01:56 2008 +0200
description:
Use smaller test buffer sizes
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/tests/test-lib.c | 4 ++--
diffs (21 lines):
diff -r 9b10a0c47e9b -r 338ea1ecca5f src/tests/test-lib.c
--- a/src/tests/test-lib.c Fri Feb 29 04:24:01 2008 +0200
+++ b/src/tests/test-lib.c Fri Feb 29 05:01:56 2008 +0200
@@ -131,7 +131,7 @@ static void test_bsearch_insert_pos(void
static void test_buffer(void)
{
-#define BUF_TEST_SIZE (1024*64)
+#define BUF_TEST_SIZE (1024*2)
#define BUF_TEST_COUNT 1000
buffer_t *buf;
unsigned char *p, testdata[BUF_TEST_SIZE], shadowbuf[BUF_TEST_SIZE];
@@ -463,7 +463,7 @@ static void test_priorityq(void)
static void test_seq_range_array_random(void)
{
-#define SEQ_RANGE_TEST_BUFSIZE 1024
+#define SEQ_RANGE_TEST_BUFSIZE 20
#define SEQ_RANGE_TEST_COUNT 10000
unsigned char shadowbuf[SEQ_RANGE_TEST_BUFSIZE];
ARRAY_TYPE(seq_range) range;
More information about the dovecot-cvs
mailing list