test574: add a timeout to the test
This one hangs occasionally, so this will speed up a test run and allow logs to be seen when it does. Closes #12025
This commit is contained in:
parent
2bee7aeb34
commit
2e5ede8f7f
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
|
||||||
|
#define TEST_HANG_TIMEOUT (60 * 1000)
|
||||||
|
|
||||||
static int new_fnmatch(void *ptr,
|
static int new_fnmatch(void *ptr,
|
||||||
const char *pattern, const char *string)
|
const char *pattern, const char *string)
|
||||||
{
|
{
|
||||||
@ -54,6 +56,7 @@ int test(char *URL)
|
|||||||
test_setopt(curl, CURLOPT_URL, URL);
|
test_setopt(curl, CURLOPT_URL, URL);
|
||||||
test_setopt(curl, CURLOPT_WILDCARDMATCH, 1L);
|
test_setopt(curl, CURLOPT_WILDCARDMATCH, 1L);
|
||||||
test_setopt(curl, CURLOPT_FNMATCH_FUNCTION, new_fnmatch);
|
test_setopt(curl, CURLOPT_FNMATCH_FUNCTION, new_fnmatch);
|
||||||
|
test_setopt(curl, CURLOPT_TIMEOUT_MS, (long) TEST_HANG_TIMEOUT);
|
||||||
|
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
if(res) {
|
if(res) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user