app/test: fix PCI class probing
authorThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 24 Jun 2016 12:24:55 +0000 (14:24 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jun 2016 10:43:49 +0000 (12:43 +0200)
The PCI test was failing because some fake devices had no PCI class.

Fixes: 1dbba1650c89 ("app/test: remove real PCI ids")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/class [new file with mode: 0644]
app/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/class [new file with mode: 0644]

diff --git a/app/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/class b/app/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/class
new file mode 100644 (file)
index 0000000..22dd936
--- /dev/null
@@ -0,0 +1 @@
+0x100000
diff --git a/app/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/class b/app/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/class
new file mode 100644 (file)
index 0000000..22dd936
--- /dev/null
@@ -0,0 +1 @@
+0x100000