Skip to content

Commit 51fb3b2

Browse files
committed
tests: assert the depth of special levels
Signed-off-by: Brice Goglin <[email protected]>
1 parent 20c3173 commit 51fb3b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/hwloc/hwloc_type_depth.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright © 2009 CNRS
3-
* Copyright © 2009-2015 Inria. All rights reserved.
3+
* Copyright © 2009-2017 Inria. All rights reserved.
44
* Copyright © 2009-2010 Université Bordeaux
55
* Copyright © 2011 Cisco Systems, Inc. All rights reserved.
66
* See COPYING in top-level directory.
@@ -49,6 +49,11 @@ int main(void)
4949
assert(hwloc_get_type_or_below_depth(topology, HWLOC_OBJ_GROUP) == HWLOC_TYPE_DEPTH_MULTIPLE);
5050
assert(hwloc_get_type_depth(topology, HWLOC_OBJ_L3CACHE) == 6);
5151

52+
assert(hwloc_get_type_depth(topology, HWLOC_OBJ_BRIDGE) == HWLOC_TYPE_DEPTH_BRIDGE);
53+
assert(hwloc_get_type_depth(topology, HWLOC_OBJ_PCI_DEVICE) == HWLOC_TYPE_DEPTH_PCI_DEVICE);
54+
assert(hwloc_get_type_depth(topology, HWLOC_OBJ_OS_DEVICE) == HWLOC_TYPE_DEPTH_OS_DEVICE);
55+
assert(hwloc_get_type_depth(topology, HWLOC_OBJ_MISC) == HWLOC_TYPE_DEPTH_MISC);
56+
5257
hwloc_topology_destroy(topology);
5358

5459
return EXIT_SUCCESS;

0 commit comments

Comments
 (0)