diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2020-09-10 17:15:44 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2020-09-10 17:15:44 +0000 |
commit | b804b5bca1285be4f7c6822dd658db5a37f5ba93 (patch) | |
tree | 7bcba3a87b362cf1d6a1b8ba38d0a591a0f8460f /tests | |
parent | 18ed63b8f13c9d90d953c8803b0bb22632fe3c7a (diff) | |
download | src-b804b5bca1285be4f7c6822dd658db5a37f5ba93.tar.gz src-b804b5bca1285be4f7c6822dd658db5a37f5ba93.zip |
Notes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/kern/memfd_test.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/sys/kern/memfd_test.c b/tests/sys/kern/memfd_test.c index 3784c4f0c840..844025c2db13 100644 --- a/tests/sys/kern/memfd_test.c +++ b/tests/sys/kern/memfd_test.c @@ -43,6 +43,9 @@ ATF_TC_BODY(basic, tc) int fd; char buf[8]; + if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false)) + atf_skip "https://bugs.freebsd.org/249236" + ATF_REQUIRE((fd = memfd_create("...", 0)) != -1); /* write(2) should grow us out automatically. */ @@ -99,6 +102,9 @@ ATF_TC_BODY(write_seal, tc) int fd; char *addr, buf[BUF_SIZE]; + if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false)) + atf_skip "https://bugs.freebsd.org/249236" + ATF_REQUIRE((fd = memfd_create("...", MFD_ALLOW_SEALING)) != -1); ATF_REQUIRE(ftruncate(fd, BUF_SIZE) == 0); @@ -128,6 +134,9 @@ ATF_TC_BODY(mmap_write_seal, tc) int fd; char *addr, *paddr, *raddr; + if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false)) + atf_skip "https://bugs.freebsd.org/249236" + ATF_REQUIRE((fd = memfd_create("...", MFD_ALLOW_SEALING)) != -1); ATF_REQUIRE(ftruncate(fd, BUF_SIZE) == 0); @@ -193,6 +202,9 @@ ATF_TC_WITHOUT_HEAD(truncate_seals); ATF_TC_BODY(truncate_seals, tc) { + if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false)) + atf_skip "https://bugs.freebsd.org/249236" + ATF_REQUIRE(memfd_truncate_test(4, 8, F_SEAL_GROW) == EPERM); ATF_REQUIRE(memfd_truncate_test(8, 4, F_SEAL_SHRINK) == EPERM); ATF_REQUIRE(memfd_truncate_test(8, 4, F_SEAL_GROW) == 0); @@ -229,6 +241,9 @@ ATF_TC_BODY(dup_seals, tc) int fd, fdx; int seals; + if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false)) + atf_skip "https://bugs.freebsd.org/249236" + ATF_REQUIRE((fd = memfd_create("...", MFD_ALLOW_SEALING)) != -1); ATF_REQUIRE((fdx = dup(fd)) != -1); ATF_REQUIRE(fcntl(fd, F_GET_SEALS) == 0); |