Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177845584
D57289.1795416458.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
602 B
Referenced Files
None
Subscribers
None
D57289.1795416458.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D57289: memfd_test: skip hugetlb testcase when large page requests are not supported
Attached
Detach File
Event Timeline