[dpdk-dev] app/test: fix PCI class probing

Message ID 1466771671-8779-1-git-send-email-thomas.monjalon@6wind.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers

Commit Message

Thomas Monjalon June 24, 2016, 12:34 p.m. UTC
  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 | 1 +
 app/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/class | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/class
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/class
  

Comments

Thomas Monjalon June 27, 2016, 10:42 a.m. UTC | #1
2016-06-24 14:34, Thomas Monjalon:
> 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>

Applied
  

Patch

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
index 0000000..22dd936
--- /dev/null
+++ b/app/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/class
@@ -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
index 0000000..22dd936
--- /dev/null
+++ b/app/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/class
@@ -0,0 +1 @@ 
+0x100000