From: Jan Viktorin Date: Mon, 13 Jun 2016 15:07:45 +0000 (+0200) Subject: app/test: do not dump devices in PCI blacklist test X-Git-Tag: spdx-start~6768 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4beab1700518a75c008f9e510e06e8eb03e52c5d;p=dpdk.git app/test: do not dump devices in PCI blacklist test 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 --- diff --git a/app/test/test_pci.c b/app/test/test_pci.c index 362ae3e3d1..8051e53b3f 100644 --- a/app/test/test_pci.c +++ b/app/test/test_pci.c @@ -238,7 +238,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);