aboutsummaryrefslogtreecommitdiff
path: root/helper/test
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@linaro.org>2018-02-20 09:53:24 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-02-28 20:40:54 +0300
commitf294fd186fa42b9c5dfa33820c3992230708a2ea (patch)
treed9e2ca97e2cd2de6fcdd095d8f8c228bf68fa445 /helper/test
parente0934ef22cb60d1b27766c1dfea61afc93109e8b (diff)
helper: cuckoo: check pool and queue limits
Use capability to check if pool and queue can hold enough events. Also lower test case resource requirement. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'helper/test')
-rw-r--r--helper/test/cuckootable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/test/cuckootable.c b/helper/test/cuckootable.c
index 7798f94e7..3afa490a6 100644
--- a/helper/test/cuckootable.c
+++ b/helper/test/cuckootable.c
@@ -429,7 +429,7 @@ static int test_creation_with_bad_parameters(void)
return 0;
}
-#define PERFORMANCE_CAPACITY 1000000
+#define PERFORMANCE_CAPACITY 4000
/*
* Test the performance of cuckoo hash table.