Skip to content

Commit

Permalink
tests/abi: check the PCI device attribute ABI
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Nov 10, 2023
1 parent bc13d5c commit 80ac332
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/hwloc/hwloc_topology_abi.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ int main(void)
size = sizeof(struct hwloc_info_s);
assert(size == 16);

size = sizeof(struct hwloc_pcidev_attr_s);
assert(size == 24);
offset = offsetof(struct hwloc_pcidev_attr_s, prog_if);
assert(offset == 7);
offset = offsetof(struct hwloc_pcidev_attr_s, revision);
assert(offset == 18);

size = sizeof(struct hwloc_topology_support);
assert(size == 32);
size = sizeof(struct hwloc_topology_discovery_support);
Expand Down

0 comments on commit 80ac332

Please sign in to comment.