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