* [ndctl PATCH] ndctl, hugetlb: skip, don't fail
@ 2018-02-10 5:23 Dan Williams
0 siblings, 0 replies; only message in thread
From: Dan Williams @ 2018-02-10 5:23 UTC (permalink / raw)
To: linux-nvdimm
The hugetlb test has x86 assumptions. Skip instead of fail to enable
package build environments that run the unit tests.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
test/hugetlb.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/test/hugetlb.c b/test/hugetlb.c
index a08a93ad40f3..11b7a3d25bb2 100644
--- a/test/hugetlb.c
+++ b/test/hugetlb.c
@@ -13,12 +13,10 @@ static int test_hugetlb(void)
for (i = 0; i < (int) ARRAY_SIZE(aligns); i++) {
fprintf(stderr, "%s: page_size: %#lx\n", __func__, aligns[i]);
rc = test_dax_directio(-1, aligns[i], NULL, 0);
- if (rc == -ENOMEM || rc == -EACCES)
- return 77;
- else if (rc == -ENOENT && aligns[i] == SZ_1G)
+ if (rc == -ENOENT && aligns[i] == SZ_1G)
continue; /* system not configured for 1G pages */
else if (rc)
- return rc;
+ return 77;
}
return 0;
}
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-10 5:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-10 5:23 [ndctl PATCH] ndctl, hugetlb: skip, don't fail Dan Williams
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.