mirror of
https://github.com/curl/curl.git
synced 2026-07-16 08:47:16 +03:00
unit1307: just fail without FTP support
I missed to check this in with commit
71786c0505, which only disabled the test.
This fixes the actual linker error.
Closes https://github.com/curl/curl/pull/3568
This commit is contained in:
parent
9e08b415f4
commit
208c77713a
1 changed files with 22 additions and 9 deletions
|
|
@ -23,6 +23,17 @@
|
|||
|
||||
#include "curl_fnmatch.h"
|
||||
|
||||
static CURLcode unit_setup(void)
|
||||
{
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
static void unit_stop(void)
|
||||
{
|
||||
}
|
||||
|
||||
#ifndef CURL_DISABLE_FTP
|
||||
|
||||
/*
|
||||
CURL_FNMATCH_MATCH 0
|
||||
CURL_FNMATCH_NOMATCH 1
|
||||
|
|
@ -239,15 +250,6 @@ static const struct testcase tests[] = {
|
|||
"a", NOMATCH|LINUX_FAIL}
|
||||
};
|
||||
|
||||
static CURLcode unit_setup(void)
|
||||
{
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
static void unit_stop(void)
|
||||
{
|
||||
}
|
||||
|
||||
static const char *ret2name(int i)
|
||||
{
|
||||
switch(i) {
|
||||
|
|
@ -308,3 +310,14 @@ UNITTEST_START
|
|||
}
|
||||
}
|
||||
UNITTEST_STOP
|
||||
|
||||
#else
|
||||
|
||||
UNITTEST_START
|
||||
{
|
||||
/* nothing to do, just fail */
|
||||
return 1;
|
||||
}
|
||||
UNITTEST_STOP
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue