git: 932996069a53 - main - tests/sys/kern/ssl_sendfile: double timeouts for :grow and :truncate
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Nov 2026 03:19:48 UTC
The branch main has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=932996069a5343b1d6563e97a12308a81c34d4fe
commit 932996069a5343b1d6563e97a12308a81c34d4fe
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-11-13 03:17:50 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-13 03:17:59 +0000
tests/sys/kern/ssl_sendfile: double timeouts for :grow and :truncate
The :grow and :truncate testcases fail semi-regularly in CI with
timeouts. Double the timeout to reduce false positives with the tests.
PR: 300699
MFC after: 1 week
Reviewed by: siva
Differential Revision: https://reviews.freebsd.org/D61444
---
tests/sys/kern/ssl_sendfile.c | 23 +++++++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/tests/sys/kern/ssl_sendfile.c b/tests/sys/kern/ssl_sendfile.c
index 0f3b0d309e96..8b8c1f95db25 100644
--- a/tests/sys/kern/ssl_sendfile.c
+++ b/tests/sys/kern/ssl_sendfile.c
@@ -354,7 +354,17 @@ ATF_TC_BODY(random, tc)
}
/* Truncate the file while sendfile(2) is working on it. */
-ATF_TC_WITHOUT_HEAD(truncate);
+ATF_TC(truncate);
+ATF_TC_HEAD(truncate, tc)
+{
+ /*
+ * NOTE: Slow platforms (including CI) fail intermittently with the
+ * default timeout. Double the default timeout to reduce false
+ * positives.
+ */
+ atf_tc_set_md_var(tc, "timeout", "600");
+}
+
ATF_TC_BODY(truncate, tc)
{
struct ctx c;
@@ -388,7 +398,16 @@ ATF_TC_BODY(truncate, tc)
}
/* Grow the file while sendfile(2) is working on it. */
-ATF_TC_WITHOUT_HEAD(grow);
+ATF_TC(grow);
+ATF_TC_HEAD(grow, tc) {
+ /*
+ * NOTE: Slow platforms (including CI) fail intermittently with the
+ * default timeout. Double the default timeout to reduce false
+ * positives.
+ */
+ atf_tc_set_md_var(tc, "timeout", "600");
+}
+
ATF_TC_BODY(grow, tc)
{
struct ctx c;