We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b508f commit 9f8ef0bCopy full SHA for 9f8ef0b
tests/hwloc/hwloc_groups.c
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright © 2011-2021 Inria. All rights reserved.
+ * Copyright © 2011-2023 Inria. All rights reserved.
3
* See COPYING in top-level directory.
4
*/
5
@@ -31,6 +31,11 @@ int main(void)
31
hwloc_topology_load(topology);
32
root = hwloc_get_root_obj(topology);
33
assert(hwloc_topology_get_depth(topology) == 3);
34
+ /* insert without sets, fails */
35
+ group = hwloc_topology_alloc_group_object(topology);
36
+ assert(group);
37
+ res = hwloc_topology_insert_group_object(topology, group);
38
+ assert(res == NULL);
39
/* insert a group identical to root, will be merged */
40
group = hwloc_topology_alloc_group_object(topology);
41
assert(group);
0 commit comments