git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53c3c30
)
app/test: do not dump devices in PCI blacklist test
author
Jan Viktorin
<viktorin@rehivetech.com>
Mon, 13 Jun 2016 15:07:45 +0000
(17:07 +0200)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Mon, 13 Jun 2016 19:08:48 +0000
(21:08 +0200)
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 <viktorin@rehivetech.com>
app/test/test_pci.c
patch
|
blob
|
history
diff --git
a/app/test/test_pci.c
b/app/test/test_pci.c
index
362ae3e
..
8051e53
100644
(file)
--- 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);