Skip to content

Commit 3e82e69

Browse files
authored
Merge pull request #715 from sthibaul/sscanf
hwloc_type_sscanf: fix test when host has several levels with same type
2 parents d6915ca + 80448f2 commit 3e82e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/hwloc/hwloc_type_sscanf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void _check(hwloc_topology_t topology, hwloc_obj_t obj, const char *buffe
4444
}
4545

4646
depth = hwloc_get_type_depth_with_attr(topology, type, &attr, sizeof(attr));
47-
assert(depth == (int) obj->depth);
47+
assert((depth == HWLOC_TYPE_DEPTH_MULTIPLE && !checkattrs) || depth == (int) obj->depth);
4848
}
4949

5050
static void check(hwloc_topology_t topology, hwloc_obj_t obj)

0 commit comments

Comments
 (0)