Lines Matching +full:- +full:- +full:no +full:- +full:run
21 * SPDX-License-Identifier: curl
52 that we aren't zero-based */
58 #define TIMEOUTS(x,y) data->set.timeout = x; data->set.connecttimeout = y
84 const struct timetest run[] = { variable
88 {BASE + 10, 0, 10000, 8000, FALSE, -1, "timeout is -1, expired"},
89 {BASE + 12, 0, 10000, 8000, FALSE, -2000, "-2000, overdue 2 seconds"},
94 {BASE + 8, 0, 10000, 8000, TRUE, -1, "timeout is -1, expired"},
95 {BASE + 10, 0, 10000, 8000, TRUE, -2000, "-2000, overdue 2 seconds"},
97 /* no connect timeout set, not connecting */
100 {BASE + 10, 0, 10000, 0, FALSE, -1, "timeout is -1, expired"},
101 {BASE + 12, 0, 10000, 0, FALSE, -2000, "-2000, overdue 2 seconds"},
103 /* no connect timeout set, connecting */
106 {BASE + 10, 0, 10000, 0, TRUE, -1, "timeout is -1, expired"},
107 {BASE + 12, 0, 10000, 0, TRUE, -2000, "-2000, overdue 2 seconds"},
110 {BASE + 4, 0, 0, 10000, FALSE, 0, "no timeout active"},
111 {BASE + 4, 990000, 0, 10000, FALSE, 0, "no timeout active"},
112 {BASE + 10, 0, 0, 10000, FALSE, 0, "no timeout active"},
113 {BASE + 12, 0, 0, 10000, FALSE, 0, "no timeout active"},
118 {BASE + 10, 0, 0, 10000, TRUE, -1, "timeout is -1, expired"},
119 {BASE + 12, 0, 0, 10000, TRUE, -2000, "-2000, overdue 2 seconds"},
121 /* no timeout set, not connecting */
122 {BASE + 4, 0, 0, 0, FALSE, 0, "no timeout active"},
123 {BASE + 4, 990000, 0, 0, FALSE, 0, "no timeout active"},
124 {BASE + 10, 0, 0, 0, FALSE, 0, "no timeout active"},
125 {BASE + 12, 0, 0, 0, FALSE, 0, "no timeout active"},
127 /* no timeout set, connecting */
128 {BASE + 4, 0, 0, 0, TRUE, 296000, "no timeout active"},
129 {BASE + 4, 990000, 0, 0, TRUE, 295010, "no timeout active"},
130 {BASE + 10, 0, 0, 0, TRUE, 290000, "no timeout active"},
131 {BASE + 12, 0, 0, 0, TRUE, 288000, "no timeout active"},
139 data->progress.t_startsingle.tv_sec = BASE;
140 data->progress.t_startsingle.tv_usec = 0;
141 data->progress.t_startop.tv_sec = BASE;
142 data->progress.t_startop.tv_usec = 0;
144 for(i = 0; i < sizeof(run)/sizeof(run[0]); i++) {
146 NOW(run[i].now_s, run[i].now_us);
147 TIMEOUTS(run[i].timeout_ms, run[i].connecttimeout_ms);
148 timeout = Curl_timeleft(data, &now, run[i].connecting);
149 if(timeout != run[i].result)
150 fail(run[i].comment);