Following empirical tries, this test wants at least 3300M of memory to
run.

Signed-off-by: David Marchand <david.march...@redhat.com>
---
 app/test/test_table.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/app/test/test_table.c b/app/test/test_table.c
index a4b0ed6..dca1b33 100644
--- a/app/test/test_table.c
+++ b/app/test/test_table.c
@@ -134,6 +134,13 @@ uint32_t pipeline_test_hash_cuckoo(const void *key,
 {
        int status, ret;
        unsigned i;
+       void *p;
+
+       /* empirical value, please refine when updating this test */
+       p = rte_malloc("enough_memory_for_test", (size_t)3300 << 20, 0);
+       if (!p)
+               return TEST_SKIPPED;
+       rte_free(p);
 
        ret = TEST_SUCCESS;
 
-- 
1.8.3.1

Reply via email to