#include "curlcheck.h"
#include "speedcheck.h"
#include "urldata.h"
Go to the source code of this file.
|
| fail_unless (runawhile(10, 50, 100, 2)==36, "bad timeout") |
|
| fail_unless (runawhile(21, 21, 20, 0)==21, "wrong low speed timeout") |
|
| fail_unless (runawhile(40, 40, 40, 0)==99, "should not time out") |
|
UNITTEST_START | fail_unless (runawhile(41, 41, 40, 0)==41, "wrong low speed timeout") |
|
| fail_unless (runawhile(50, 50, 40, 0)==50, "wrong log speed timeout") |
|
| fail_unless (runawhile(60, 60, 40, 0)==60, "wrong log speed timeout") |
|
static int | runawhile (long time_limit, long speed_limit, curl_off_t speed, int dec) |
|
static CURLcode | unit_setup (void) |
|
static void | unit_stop (void) |
|
◆ fail_unless() [1/6]
◆ fail_unless() [2/6]
◆ fail_unless() [3/6]
fail_unless |
( |
runawhile(40, 40, 40, 0) |
= =99 , |
|
|
"should not time out" |
|
|
) |
| |
◆ fail_unless() [4/6]
◆ fail_unless() [5/6]
◆ fail_unless() [6/6]
◆ runawhile()
static int runawhile |
( |
long |
time_limit, |
|
|
long |
speed_limit, |
|
|
curl_off_t |
speed, |
|
|
int |
dec |
|
) |
| |
|
static |
◆ unit_setup()
◆ unit_stop()
static void unit_stop |
( |
void |
| ) |
|
|
static |
◆ easy