Skip to content

Commit 2af29c0

Browse files
committed
tests: fix topology ABI checks when 32bits PCI domain
Signed-off-by: Brice Goglin <[email protected]>
1 parent d2da9a9 commit 2af29c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/hwloc/hwloc_topology_abi.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2017-2019 Inria. All rights reserved.
2+
* Copyright © 2017-2020 Inria. All rights reserved.
33
* See COPYING in top-level directory.
44
*/
55

@@ -117,7 +117,11 @@ int main(void)
117117
size = sizeof(struct hwloc_obj);
118118
assert(size == 248);
119119
size = sizeof(union hwloc_obj_attr_u);
120+
#ifdef HWLOC_HAVE_32BITS_PCI_DOMAIN
121+
assert(size == 48);
122+
#else
120123
assert(size == 40);
124+
#endif
121125
size = sizeof(struct hwloc_info_s);
122126
assert(size == 16);
123127

0 commit comments

Comments
 (0)