mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 03:15:20 +00:00
pci: Make unit tests compile
Another member was added to the configuration struct. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
74d079f7da
commit
9a17871630
@ -643,6 +643,7 @@ mod tests {
|
|||||||
PciHeaderType::Device,
|
PciHeaderType::Device,
|
||||||
0xABCD,
|
0xABCD,
|
||||||
0x2468,
|
0x2468,
|
||||||
|
None,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Add two capabilities with different contents.
|
// Add two capabilities with different contents.
|
||||||
@ -704,6 +705,7 @@ mod tests {
|
|||||||
PciHeaderType::Device,
|
PciHeaderType::Device,
|
||||||
0xABCD,
|
0xABCD,
|
||||||
0x2468,
|
0x2468,
|
||||||
|
None,
|
||||||
);
|
);
|
||||||
|
|
||||||
let class_reg = cfg.read_reg(2);
|
let class_reg = cfg.read_reg(2);
|
||||||
|
Loading…
Reference in New Issue
Block a user