Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161690685
D57289.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
602 B
Referenced Files
None
Subscribers
None
D57289.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, Jul 6, 11:46 PM (8 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33614323
Default Alt Text
D57289.diff (602 B)
Attached To
Mode
D57289: memfd_test: skip hugetlb testcase when large page requests are not supported
Attached
Detach File
Event Timeline
Log In to Comment