]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: add 'large-time' as a testable feature
authorDaniel Stenberg <daniel@haxx.se>
Sat, 19 Aug 2023 19:20:03 +0000 (21:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 19 Aug 2023 21:37:02 +0000 (23:37 +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

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

index 0e8f55115919c746be4c7b31e14e5bc0db115e74..82e5f6c27c45b27a1791d919f0b1c267b4fb8fac 100644 (file)
@@ -428,6 +428,7 @@ Features testable here are:
 - `ipv6`
 - `Kerberos`
 - `large_file`
+- `large-time` (time_t is larger than 32 bit)
 - `ld_preload`
 - `libssh2`
 - `libssh`
index 4127c9c73417a23f696f63f9da2174f1c48cd77c..01a8a0aa68e65561afb13526a4a8671784cb731e 100755 (executable)
@@ -793,6 +793,7 @@ sub checksystemfeatures {
     $feature{"wakeup"} = 1;
     $feature{"headers-api"} = 1;
     $feature{"xattr"} = 1;
+    $feature{"large-time"} = 1;
 
     # make each protocol an enabled "feature"
     for my $p (@protocols) {
index a04b355020bd2d740f15e474dd2f27dc5e53f011..a9b43b8355bfbdbbedfd56faded3b21179a4761f 100644 (file)
@@ -84,6 +84,9 @@ static const char *disabled[]={
 #endif
 #ifdef CURL_DISABLE_FORM_API
   "form-api",
+#endif
+#if (SIZEOF_TIME_T < 5)
+  "large-time",
 #endif
   NULL
 };