cloud-hypervisor/pci
Sebastien Boeuf 846505d360 pci: Fix add_capability unit test
The structure provided to the add_capability() function should only
contain what comes after the capability ID and the next capability
pointer, which are located on the first WORD.

Because the structure TestCap included _vndr and _next fields, they
were directly set after the first WORD, while the assertion was
expecting to find the values of len and foo fields.

Fixes #105

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-08-03 08:43:44 +01:00
..
src pci: Fix add_capability unit test 2019-08-03 08:43:44 +01:00
Cargo.toml build: Bulk update dependencies 2019-08-02 15:22:37 +02:00