[PATCH] tests: add 'large-time' as a testable feature
authorDaniel Stenberg <daniel@haxx.se>
Sat, 19 Aug 2023 19:20:03 +0000 (21:20 +0200)
committerSamuel Henrique <samueloph@debian.org>
Sat, 19 Jul 2025 19:04:59 +0000 (21:04 +0200)
This allows test cases to require this feature to run and to be used in
%if conditions.

Large here means larger than 32 bits. Ie does not suffer from y2038.

Closes #11696

Backported by: Aquila Macedo Costa <aquilamacedo@riseup.net>.

Changes:
- Refresh patch context

Gbp-Pq: Name large-time-testable-feature.patch

tests/FILEFORMAT.md
tests/runtests.pl
tests/server/disabled.c

index aff0e2d4f1313bf1d5f1801772d2b5d90a6ceec3..65df41cddbf30b4cfe18b0e3bd41ac1f912bb338 100644 (file)
@@ -417,6 +417,7 @@ Features testable here are:
 - `ipv6`
 - `Kerberos`
 - `large_file`
+- `large-time` (time_t is larger than 32 bit)
 - `ld_preload`
 - `libssh2`
 - `libssh`
index 1510527e3c9e55c48e20e318225ec2a2bb73a497..c4c7717c1577af832ac39cf6d8c18fb8232943a8 100755 (executable)
@@ -3064,6 +3064,7 @@ sub setupfeatures {
     $feature{"wakeup"} = 1;
     $feature{"headers-api"} = 1;
     $feature{"xattr"} = 1;
+    $feature{"large-time"} = 1;
     $feature{"nghttpx"} = !!$ENV{'NGHTTPX'};
     $feature{"nghttpx-h3"} = !!$nghttpx_h3;
 }
index 7ce2903881c07c13ac49b75ec9cbcf1c2374f2ca..48cf87835daf6785ba0197740188afda66457bd6 100644 (file)
@@ -78,6 +78,9 @@ static const char *disabled[]={
 #endif
 #ifndef USE_XATTR
   "xattr",
+#endif
+#if (SIZEOF_TIME_T < 5)
+  "large-time",
 #endif
   NULL
 };