Page MenuHomeFreeBSD

D57289.diff
No OneTemporary

D57289.diff

diff --git a/tests/sys/posixshm/memfd_test.c b/tests/sys/posixshm/memfd_test.c
--- a/tests/sys/posixshm/memfd_test.c
+++ b/tests/sys/posixshm/memfd_test.c
@@ -294,8 +294,11 @@
if (!MFD_HUGE_SUPPORTED(pgsize))
continue;
- ATF_REQUIRE_MSG((fd = memfd_create("...",
- MFD_HUGETLB | MFD_HUGE_FLAGS(pgsize))) != -1,
+ fd = memfd_create("...", MFD_HUGETLB | MFD_HUGE_FLAGS(pgsize));
+ if (fd == -1 && errno == ENOTTY)
+ atf_tc_skip("large page requests are not supported on the current platform");
+
+ ATF_REQUIRE_MSG(fd != -1,
"Creating a %zu-size hugetlb memfd", pgsize);
}

File Metadata

Mime Type
text/plain
Expires
Tue, Jul 7, 10:15 AM (19 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33614323
Default Alt Text
D57289.diff (602 B)

Event Timeline