diff --git a/tests/libtest/lib503.c b/tests/libtest/lib503.c index 66d2c9813a924723b53981bb1034ca2d1111132b..efa6723c1d91ad625c9f7281bcd8fcddc02ee2c7 100644 --- a/tests/libtest/lib503.c +++ b/tests/libtest/lib503.c @@ -10,7 +10,6 @@ #include "test.h" -#include #include #include "timeval.h" @@ -83,7 +82,7 @@ int test(char *URL) interval.tv_sec = 1; interval.tv_usec = 0; - if (curlx_tvdiff(curlx_tvnow(), ml_start) > + if (curlx_tvdiff(curlx_tvnow(), ml_start) > MAIN_LOOP_HANG_TIMEOUT) { ml_timedout = TRUE; break; @@ -93,7 +92,7 @@ int test(char *URL) while (res == CURLM_CALL_MULTI_PERFORM) { res = (int)curl_multi_perform(m, &running); - if (curlx_tvdiff(curlx_tvnow(), mp_start) > + if (curlx_tvdiff(curlx_tvnow(), mp_start) > MULTI_PERFORM_HANG_TIMEOUT) { mp_timedout = TRUE; break; diff --git a/tests/libtest/lib504.c b/tests/libtest/lib504.c index 5b10022df8445982ab510ad6eeedaaeba439e973..775468da0d6c818a6a66eb480f54e1e44dc80309 100644 --- a/tests/libtest/lib504.c +++ b/tests/libtest/lib504.c @@ -10,7 +10,6 @@ #include "test.h" -#include #include #include "timeval.h" @@ -83,7 +82,7 @@ int test(char *URL) interval.tv_sec = 1; interval.tv_usec = 0; - if (curlx_tvdiff(curlx_tvnow(), ml_start) > + if (curlx_tvdiff(curlx_tvnow(), ml_start) > MAIN_LOOP_HANG_TIMEOUT) { ml_timedout = TRUE; break; @@ -97,7 +96,7 @@ int test(char *URL) while (res == CURLM_CALL_MULTI_PERFORM) { res = curl_multi_perform(m, &running); - if (curlx_tvdiff(curlx_tvnow(), mp_start) > + if (curlx_tvdiff(curlx_tvnow(), mp_start) > MULTI_PERFORM_HANG_TIMEOUT) { mp_timedout = TRUE; break; diff --git a/tests/libtest/lib509.c b/tests/libtest/lib509.c index a911e36540a85f675ce76be4028e3dd5d0d34df3..86e169d8d40bca89326d749a062242045c364f7f 100644 --- a/tests/libtest/lib509.c +++ b/tests/libtest/lib509.c @@ -12,7 +12,6 @@ #ifdef USE_SSLEAY -#include #include #include @@ -33,7 +32,7 @@ #define MAIN_LOOP_HANG_TIMEOUT 30 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 20 * 1000 -/* +/* * We use this ZERO_NULL to avoid picky compiler warnings, * when assigning a NULL pointer to a function pointer var. */ @@ -259,7 +258,7 @@ int test(char *URL) interval.tv_sec = 1; interval.tv_usec = 0; - if (curlx_tvdiff(curlx_tvnow(), ml_start) > + if (curlx_tvdiff(curlx_tvnow(), ml_start) > MAIN_LOOP_HANG_TIMEOUT) { ml_timedout = TRUE; break; @@ -269,7 +268,7 @@ int test(char *URL) while (res == CURLM_CALL_MULTI_PERFORM) { res = curl_multi_perform(multi, &running); - if (curlx_tvdiff(curlx_tvnow(), mp_start) > + if (curlx_tvdiff(curlx_tvnow(), mp_start) > MULTI_PERFORM_HANG_TIMEOUT) { mp_timedout = TRUE; break;