Lines Matching defs:timeout
117 unsigned int timeout;
120 "The default timeout is returned from _gettimeout()");
124 timeout = dns_resolver_gettimeout(resolver);
125 t_info("The default timeout is %d second%s\n", timeout, (timeout == 1 ? "" : "s"));
126 test_result = (timeout > 0) ? T_PASS : T_FAIL;
138 unsigned int default_timeout, timeout;
141 "_settimeout() can change the timeout to a non-default");
146 t_info("The default timeout is %d second%s\n", default_timeout,
150 timeout = dns_resolver_gettimeout(resolver);
151 t_info("The new timeout is %d second%s\n", timeout,
152 (timeout == 1 ? "" : "s"));
153 test_result = (timeout == default_timeout + 1) ? T_PASS : T_FAIL;
165 unsigned int default_timeout, timeout;
168 "_settimeout() can change the timeout back to a default value"
169 " by specifying 0 as the timeout.");
174 t_info("The default timeout is %d second%s\n", default_timeout,
178 timeout = dns_resolver_gettimeout(resolver);
179 t_info("The new timeout is %d second%s\n", timeout,
180 (timeout == 1 ? "" : "s"));
183 timeout = dns_resolver_gettimeout(resolver);
184 test_result = (timeout == default_timeout) ? T_PASS : T_FAIL;
196 unsigned int timeout;
204 timeout = dns_resolver_gettimeout(resolver);
205 t_info("The new timeout is %d second%s\n", timeout,
206 (timeout == 1 ? "" : "s"));
208 test_result = (timeout < 4000000 && timeout > 0) ? T_PASS : T_FAIL;