Lines Matching refs:s_login
30 static char *s_login; variable
36 s_login = strdup(""); in unit_setup()
37 if(!s_password || !s_login) { in unit_setup()
39 Curl_safefree(s_login); in unit_setup()
48 Curl_safefree(s_login); in unit_stop()
61 "test.example.com", &s_login, &s_password, arg);
65 abort_unless(s_login != NULL, "returned NULL!");
66 fail_unless(s_login[0] == 0, "login should not have been changed");
72 free(s_login);
73 s_login = strdup("me");
74 abort_unless(s_login != NULL, "returned NULL!");
77 "example.com", &s_login, &s_password, arg);
81 abort_unless(s_login != NULL, "returned NULL!");
82 fail_unless(strncmp(s_login, "me", 2) == 0,
89 free(s_login);
90 s_login = strdup("me");
91 abort_unless(s_login != NULL, "returned NULL!");
94 "test.example.com", &s_login, &s_password, arg);
98 abort_unless(s_login != NULL, "returned NULL!");
99 fail_unless(strncmp(s_login, "me", 2) == 0,
107 free(s_login);
108 s_login = strdup("admi");
109 abort_unless(s_login != NULL, "returned NULL!");
112 "example.com", &s_login, &s_password, arg);
116 abort_unless(s_login != NULL, "returned NULL!");
117 fail_unless(strncmp(s_login, "admi", 4) == 0,
125 free(s_login);
126 s_login = strdup("adminn");
127 abort_unless(s_login != NULL, "returned NULL!");
130 "example.com", &s_login, &s_password, arg);
134 abort_unless(s_login != NULL, "returned NULL!");
135 fail_unless(strncmp(s_login, "adminn", 6) == 0,
143 free(s_login);
144 s_login = strdup("");
145 abort_unless(s_login != NULL, "returned NULL!");
148 "example.com", &s_login, &s_password, arg);
153 abort_unless(s_login != NULL, "returned NULL!");
154 fail_unless(strncmp(s_login, "admin", 5) == 0, "login should be 'admin'");
166 "example.com", &s_login, &s_password, arg);
171 abort_unless(s_login != NULL, "returned NULL!");
172 fail_unless(strncmp(s_login, "admin", 5) == 0, "login should be 'admin'");
182 free(s_login);
183 s_login = strdup("");
184 abort_unless(s_login != NULL, "returned NULL!");
187 "curl.example.com", &s_login, &s_password, arg);
192 abort_unless(s_login != NULL, "returned NULL!");
193 fail_unless(strncmp(s_login, "none", 4) == 0, "login should be 'none'");
205 "curl.example.com", &s_login, &s_password, arg);
210 abort_unless(s_login != NULL, "returned NULL!");
211 fail_unless(strncmp(s_login, "none", 4) == 0, "login should be 'none'");