From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D3BDCA0487 for ; Fri, 5 Jul 2019 11:19:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B233B1BDF1; Fri, 5 Jul 2019 11:19:08 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 185341BDF0 for ; Fri, 5 Jul 2019 11:19:08 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 87E76308339F; Fri, 5 Jul 2019 09:19:07 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-190.brq.redhat.com [10.40.204.190]) by smtp.corp.redhat.com (Postfix) with ESMTP id 61D06909E6; Fri, 5 Jul 2019 09:19:06 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Cristian Dumitrescu Date: Fri, 5 Jul 2019 11:19:00 +0200 Message-Id: <1562318340-30464-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 05 Jul 2019 09:19:07 +0000 (UTC) Subject: [dpdk-dev] [PATCH] test/table: skip when not enough memory is available X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Following empirical tries, this test wants at least 3300M of memory to run. Signed-off-by: David Marchand --- 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