From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Viktorin Subject: [PATCH v3 11/11] app/test: do not dump PCI devices in blacklist test Date: Tue, 17 May 2016 20:35:01 +0200 Message-ID: <1463510101-5633-12-git-send-email-viktorin@rehivetech.com> References: <1463510101-5633-1-git-send-email-viktorin@rehivetech.com> Cc: Jan Viktorin , Thomas Monjalon , David Marchand , Bruce Richardson To: dev@dpdk.org Return-path: Received: from wes1-so2.wedos.net (wes1-so2.wedos.net [46.28.106.16]) by dpdk.org (Postfix) with ESMTP id 8058F6CBA for ; Tue, 17 May 2016 20:36:50 +0200 (CEST) In-Reply-To: <1463510101-5633-1-git-send-email-viktorin@rehivetech.com> In-Reply-To: <1461935496-20367-1-git-send-email-viktorin@rehivetech.com> References: <1461935496-20367-1-git-send-email-viktorin@rehivetech.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Dumping of devices in a unittest is useless. Instead, test whether the test has been set up well - i.e. there are no devices. Signed-off-by: Jan Viktorin --- app/test/test_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_pci.c b/app/test/test_pci.c index 69066cb..5506a11 100644 --- a/app/test/test_pci.c +++ b/app/test/test_pci.c @@ -150,8 +150,8 @@ test_pci_blacklist(void) { struct rte_devargs_list save_devargs_list; - printf("Dump all devices\n"); - rte_eal_pci_dump(stdout); + TEST_ASSERT(TAILQ_EMPTY(&pci_driver_list), + "pci_driver_list not empty"); rte_eal_pci_register(&my_driver); rte_eal_pci_register(&my_driver2); -- 2.8.0