svn commit: r365592 - head/tests/sys/kern
Li-Wen Hsu
lwhsu at FreeBSD.org
Thu Sep 10 17:15:45 UTC 2020
Author: lwhsu
Date: Thu Sep 10 17:15:44 2020
New Revision: 365592
URL: https://svnweb.freebsd.org/changeset/base/365592
Log:
Temporarily skip failing sys.kern.memfd_test.* tests in CI
PR: 249236
Sponsored by: The FreeBSD Foundation
Modified:
head/tests/sys/kern/memfd_test.c
Modified: head/tests/sys/kern/memfd_test.c
==============================================================================
--- head/tests/sys/kern/memfd_test.c Thu Sep 10 17:12:42 2020 (r365591)
+++ head/tests/sys/kern/memfd_test.c Thu Sep 10 17:15:44 2020 (r365592)
@@ -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);
@@ -228,6 +240,9 @@ ATF_TC_BODY(dup_seals, tc)
char buf[8];
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);
More information about the svn-src-all
mailing list