Hello,

Andreas Beckmann, le mer. 16 avril 2025 04:35:58 +0200, a ecrit:
> hwloc_type_sscanf: hwloc_type_sscanf.c:40: _check: Assertion `depth == (int) 
> obj->depth' failed.

Divination told me that perhaps the attached patch could help?

Samuel
diff --git a/tests/hwloc/hwloc_type_sscanf.c b/tests/hwloc/hwloc_type_sscanf.c
index 742df3d7..127cee7b 100644
--- a/tests/hwloc/hwloc_type_sscanf.c
+++ b/tests/hwloc/hwloc_type_sscanf.c
@@ -37,7 +37,7 @@ static void _check(hwloc_topology_t topology, hwloc_obj_t 
obj, const char *buffe
 
   err = hwloc_type_sscanf_as_depth(buffer, NULL, topology, &depth);
   assert(!err);
-  assert(depth == (int) obj->depth);
+  assert(depth == HWLOC_TYPE_DEPTH_MULTIPLE || depth == (int) obj->depth);
 }
 
 static void check(hwloc_topology_t topology, hwloc_obj_t obj)

Reply via email to