Skip to content

Commit e1cd781

Browse files
Update multi numa nodes os provider tests
Extend current tests with more checks and more cases. Run selected cases on all CPUs or all NUMA nodes.
1 parent 494d30c commit e1cd781

File tree

2 files changed

+182
-111
lines changed

2 files changed

+182
-111
lines changed

test/common/numa_helpers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ int getNumaNodeByPtr(void *ptr) {
2222
int retm =
2323
get_mempolicy(&nodeId, nullptr, 0, ptr, MPOL_F_ADDR | MPOL_F_NODE);
2424
UT_ASSERTeq(retm, 0);
25+
UT_ASSERT(nodeId >= 0);
26+
2527
return nodeId;
2628
}
2729

0 commit comments

Comments
 (0)