aboutsummaryrefslogtreecommitdiff
path: root/tests/memfd_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/memfd_create.c')
-rw-r--r--tests/memfd_create.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/memfd_create.c b/tests/memfd_create.c
index 480fd1771..4559b426d 100644
--- a/tests/memfd_create.c
+++ b/tests/memfd_create.c
@@ -11,10 +11,11 @@ int
main(void)
{
static const char text[] = "strace";
- int rc = syscall(__NR_memfd_create, text, 7);
+ int rc = syscall(__NR_memfd_create, text, 0xf);
- printf("memfd_create(\"%s\", %s) = %d %s (%m)\n",
- text, "MFD_CLOEXEC|MFD_ALLOW_SEALING|0x4", rc, errno2name());
+ printf("memfd_create(\"%s\", %s) = %s\n",
+ text, "MFD_CLOEXEC|MFD_ALLOW_SEALING|MFD_HUGETLB|0x8",
+ sprintrc(rc));
puts("+++ exited with 0 +++");
return 0;