The tests expect some regions to have the same physical id, but that
will not be the case if there is no interleave support.
Signed-off-by: Santosh Sivaraj <santosh(a)fossix.org>
---
test/libndctl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/libndctl.c b/test/libndctl.c
index 994e0fa..d508948 100644
--- a/test/libndctl.c
+++ b/test/libndctl.c
@@ -2484,7 +2484,8 @@ static int check_dimms(struct ndctl_bus *bus, struct dimm *dimms,
int n,
return -ENXIO;
}
- if (ndctl_dimm_get_phys_id(dimm) != dimms[i].phys_id) {
+ if (ndctl_bus_has_nfit(bus) &&
+ ndctl_dimm_get_phys_id(dimm) != dimms[i].phys_id) {
fprintf(stderr, "dimm%d expected phys_id: %d got: %d\n",
i, dimms[i].phys_id,
ndctl_dimm_get_phys_id(dimm));
--
2.26.2