From d7ef67e821fa0d2968ada900bd50d04d2bfaff41 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Fri, 2 Oct 2009 17:57:46 +0200 Subject: [PATCH] reduce the stress load on TypedCounter_test, to avoid testsuite out of memory --- tests/lib/typed-counter-test.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/lib/typed-counter-test.cpp b/tests/lib/typed-counter-test.cpp index 9dc43f366..a118d8d26 100644 --- a/tests/lib/typed-counter-test.cpp +++ b/tests/lib/typed-counter-test.cpp @@ -71,11 +71,19 @@ namespace test{ namespace { // test data and helpers... - const uint MAX_FAMILIES = 20; ///< maximum separate "families", each sharing a TypedCounter - const uint MAX_MEMBERS = 30; ///< maximum members per family (member == test thread) + const uint MAX_FAMILIES = 5; ///< maximum separate "families", each sharing a TypedCounter + const uint MAX_MEMBERS = 20; ///< maximum members per family (member == test thread) const uint MAX_ITERATIONS = 50; ///< maximum iterations within a single test thread const uint MAX_DELAY_ms = 3; ///< maximum delay between check iterations + /* Hint: number of threads = MEMBERS * FAMILIES + * + * The values set here are fairly conservative, + * but increasing the number of threads causes the test suite + * to fail frequently. Please increase these values e.g. + * to 20 and 50 for a more thorough stress test! + */ + /** * Interface to a family of dummy types