tests: add 'large-time' as a testable feature

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
This commit is contained in:
Daniel Stenberg 2023-08-19 21:20:03 +02:00
parent 98483a8a3f
commit 1c3fcbdaa9
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
3 changed files with 5 additions and 0 deletions

View 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`

View File

@ -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) {

View 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
};