mirror of
https://github.com/curl/curl.git
synced 2025-09-15 00:22:42 +03:00
test1304: build and skip without netrc support
This commit is contained in:
parent
acca40c9b5
commit
97a79c79a7
|
@ -14,6 +14,7 @@ none
|
||||||
</server>
|
</server>
|
||||||
<features>
|
<features>
|
||||||
unittest
|
unittest
|
||||||
|
netrc
|
||||||
</features>
|
</features>
|
||||||
<name>
|
<name>
|
||||||
netrc parsing unit tests
|
netrc parsing unit tests
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
#include "netrc.h"
|
#include "netrc.h"
|
||||||
#include "memdebug.h" /* LAST include file */
|
#include "memdebug.h" /* LAST include file */
|
||||||
|
|
||||||
|
#ifndef CURL_DISABLE_NETRC
|
||||||
|
|
||||||
static char *login;
|
static char *login;
|
||||||
static char *password;
|
static char *password;
|
||||||
|
|
||||||
|
@ -181,3 +183,16 @@ UNITTEST_START
|
||||||
fail_unless(strncmp(login, "none", 4) == 0, "login should be 'none'");
|
fail_unless(strncmp(login, "none", 4) == 0, "login should be 'none'");
|
||||||
|
|
||||||
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