Page MenuHomeFreeBSD

D57289.1795416458.diff
No OneTemporary

Authored By
Unknown
Size
602 B
Referenced Files
None
Subscribers
None

D57289.1795416458.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
Mon, Nov 23, 6:47 AM (13 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41897834
Default Alt Text
D57289.1795416458.diff (602 B)

Event Timeline