Skip to content

Commit 80ac332

Browse files
committed
tests/abi: check the PCI device attribute ABI
Signed-off-by: Brice Goglin <[email protected]>
1 parent bc13d5c commit 80ac332

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/hwloc/hwloc_topology_abi.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ int main(void)
142142
size = sizeof(struct hwloc_info_s);
143143
assert(size == 16);
144144

145+
size = sizeof(struct hwloc_pcidev_attr_s);
146+
assert(size == 24);
147+
offset = offsetof(struct hwloc_pcidev_attr_s, prog_if);
148+
assert(offset == 7);
149+
offset = offsetof(struct hwloc_pcidev_attr_s, revision);
150+
assert(offset == 18);
151+
145152
size = sizeof(struct hwloc_topology_support);
146153
assert(size == 32);
147154
size = sizeof(struct hwloc_topology_discovery_support);

0 commit comments

Comments
 (0)