mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:23:32 +03:00
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:
parent
98483a8a3f
commit
1c3fcbdaa9
3 changed files with 5 additions and 0 deletions
|
|
@ -428,6 +428,7 @@ Features testable here are:
|
||||||
- `ipv6`
|
- `ipv6`
|
||||||
- `Kerberos`
|
- `Kerberos`
|
||||||
- `large_file`
|
- `large_file`
|
||||||
|
- `large-time` (time_t is larger than 32 bit)
|
||||||
- `ld_preload`
|
- `ld_preload`
|
||||||
- `libssh2`
|
- `libssh2`
|
||||||
- `libssh`
|
- `libssh`
|
||||||
|
|
|
||||||
|
|
@ -793,6 +793,7 @@ sub checksystemfeatures {
|
||||||
$feature{"wakeup"} = 1;
|
$feature{"wakeup"} = 1;
|
||||||
$feature{"headers-api"} = 1;
|
$feature{"headers-api"} = 1;
|
||||||
$feature{"xattr"} = 1;
|
$feature{"xattr"} = 1;
|
||||||
|
$feature{"large-time"} = 1;
|
||||||
|
|
||||||
# make each protocol an enabled "feature"
|
# make each protocol an enabled "feature"
|
||||||
for my $p (@protocols) {
|
for my $p (@protocols) {
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,9 @@ static const char *disabled[]={
|
||||||
#endif
|
#endif
|
||||||
#ifdef CURL_DISABLE_FORM_API
|
#ifdef CURL_DISABLE_FORM_API
|
||||||
"form-api",
|
"form-api",
|
||||||
|
#endif
|
||||||
|
#if (SIZEOF_TIME_T < 5)
|
||||||
|
"large-time",
|
||||||
#endif
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue