mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
unit3200: skip testing if function is not present
Fake a successful run since we have no easy mechanism to skip this test for this advanced condition.
This commit is contained in:
parent
de7d421067
commit
e90d356570
@ -24,6 +24,9 @@
|
|||||||
#include "curlcheck.h"
|
#include "curlcheck.h"
|
||||||
#include "curl_get_line.h"
|
#include "curl_get_line.h"
|
||||||
|
|
||||||
|
#if !defined(CURL_DISABLE_COOKIES) || !defined(CURL_DISABLE_ALTSVC) || \
|
||||||
|
!defined(CURL_DISABLE_HSTS) || !defined(CURL_DISABLE_NETRC)
|
||||||
|
|
||||||
/* The test XML does not supply a way to write files without newlines
|
/* The test XML does not supply a way to write files without newlines
|
||||||
* so we write our own
|
* so we write our own
|
||||||
*/
|
*/
|
||||||
@ -157,3 +160,16 @@ UNITTEST_START
|
|||||||
fprintf(stderr, "OK\n");
|
fprintf(stderr, "OK\n");
|
||||||
}
|
}
|
||||||
UNITTEST_STOP
|
UNITTEST_STOP
|
||||||
|
|
||||||
|
#else
|
||||||
|
static CURLcode unit_setup(void)
|
||||||
|
{
|
||||||
|
return CURLE_OK;
|
||||||
|
}
|
||||||
|
static void unit_stop(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
UNITTEST_START
|
||||||
|
UNITTEST_STOP
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user