• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/curl-7.23.1/tests/unit/

Lines Matching defs:login

26 static char login[LOGINSIZE];
33 login[0] = 0;
50 result = Curl_parsenetrc("test.example.com", login, password, filename);
53 fail_unless(login[0] == 0, "login should not have been changed");
56 * Test a non existent login in our netrc file.
58 memcpy(login, "me", 2);
59 result = Curl_parsenetrc("example.com", login, password, filename);
62 fail_unless(strncmp(login, "me", 2) == 0, "login should not have been changed");
65 * Test a non existent login and host in our netrc file.
67 memcpy(login, "me", 2);
68 result = Curl_parsenetrc("test.example.com", login, password, filename);
71 fail_unless(strncmp(login, "me", 2) == 0, "login should not have been changed");
74 * Test a non existent login (substring of an existing one) in our
77 memcpy(login, "admi", 4);
78 result = Curl_parsenetrc("example.com", login, password, filename);
81 fail_unless(strncmp(login, "admi", 4) == 0, "login should not have been changed");
84 * Test a non existent login (superstring of an existing one)
87 memcpy(login, "adminn", 6);
88 result = Curl_parsenetrc("example.com", login, password, filename);
91 fail_unless(strncmp(login, "adminn", 6) == 0, "login should not have been changed");
95 * with login[0] = 0.
97 login[0] = 0;
98 result = Curl_parsenetrc("example.com", login, password, filename);
102 fail_unless(strncmp(login, "admin", 5) == 0, "login should be 'admin'");
106 * with login[0] != 0.
109 result = Curl_parsenetrc("example.com", login, password, filename);
113 fail_unless(strncmp(login, "admin", 5) == 0, "login should be 'admin'");
117 * with login[0] = 0.
120 login[0] = 0;
121 result = Curl_parsenetrc("curl.example.com", login, password, filename);
125 fail_unless(strncmp(login, "none", 4) == 0, "login should be 'none'");
129 * with login[0] != 0.
132 result = Curl_parsenetrc("curl.example.com", login, password, filename);
136 fail_unless(strncmp(login, "none", 4) == 0, "login should be 'none'");
139 * Test over the size limit password / login!