diff --git a/tests/data/test1304 b/tests/data/test1304 index afc9aed1e9..a7de1d52fe 100644 --- a/tests/data/test1304 +++ b/tests/data/test1304 @@ -14,6 +14,7 @@ none unittest +netrc netrc parsing unit tests diff --git a/tests/unit/unit1304.c b/tests/unit/unit1304.c index cb7f7bb28a..0288562c6f 100644 --- a/tests/unit/unit1304.c +++ b/tests/unit/unit1304.c @@ -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