summaryrefslogtreecommitdiff
path: root/tests/nodedevxml2xmltest.c
diff options
context:
space:
mode:
authorMartin Kletzander <mkletzan@redhat.com>2016-04-03 19:55:54 +0200
committerMartin Kletzander <mkletzan@redhat.com>2016-04-04 14:24:02 +0200
commit17a94ba70fc11c21f8ea70ff92131d0868f4cde1 (patch)
tree6a0b470531c868a5cc8e2f31f8773bbc7c476be1 /tests/nodedevxml2xmltest.c
parent8f74f5277d33ab791ee5b94f77efbbbebe37c6b1 (diff)
downloadlibvirt-17a94ba70fc11c21f8ea70ff92131d0868f4cde1.tar.gz
nodedev: Fix parsing of generated XMLs
Commit d77ffb6876 added not only reporting of the PCI header type, but also parsing of that information. However, because there was no parsing done for the other sub-PCI capabilities, if there was any other capability then a valid header type name (like phys_function or virt_functions) the parsing would fail. This prevented passing node device XMLs that we generated into our own functions when dealing with, e.g. with SRIOV cards. Instead of reworking the whole parsing, just fix this one occurence and remove a test for it for the time being. Future patches will deal with the rest. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Diffstat (limited to 'tests/nodedevxml2xmltest.c')
-rw-r--r--tests/nodedevxml2xmltest.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/nodedevxml2xmltest.c b/tests/nodedevxml2xmltest.c
index 246cec7101..96041f50b9 100644
--- a/tests/nodedevxml2xmltest.c
+++ b/tests/nodedevxml2xmltest.c
@@ -91,8 +91,6 @@ mymain(void)
DO_TEST("usb_device_1d6b_1_0000_00_1d_0");
DO_TEST("pci_8086_4238_pcie_wireless");
DO_TEST("pci_8086_0c0c_snd_hda_intel");
- DO_TEST("pci_0000_00_02_0_header_type");
- DO_TEST("pci_0000_00_1c_0_header_type");
DO_TEST("scsi_target0_0_0");
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;