mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-11 05:00:41 +01:00
testbench: increase timeout for test + better to exp reporting
This commit is contained in:
parent
febfb4e266
commit
72982ed3f8
@ -605,6 +605,7 @@ timeoutGuard(ATTR_UNUSED void *arg)
|
||||
{
|
||||
assert(abortTimeout != -1);
|
||||
sigset_t sigSet;
|
||||
time_t strtTO;
|
||||
time_t endTO;
|
||||
|
||||
/* block all signals except SIGTTIN and SIGSEGV */
|
||||
@ -614,8 +615,8 @@ timeoutGuard(ATTR_UNUSED void *arg)
|
||||
|
||||
dbgprintf("timeoutGuard: timeout %d seconds, time %lld\n", abortTimeout, (long long) time(NULL));
|
||||
|
||||
time(&endTO);
|
||||
endTO += abortTimeout;
|
||||
time(&strtTO);
|
||||
endTO = strtTO + abortTimeout;
|
||||
|
||||
while(1) {
|
||||
int to = endTO - time(NULL);
|
||||
@ -633,8 +634,8 @@ timeoutGuard(ATTR_UNUSED void *arg)
|
||||
dbgprintf("timeoutGuard: sleep expired, aborting\n");
|
||||
/* note: we use fprintf to stderr intentionally! */
|
||||
fprintf(stderr, "timeoutGuard: rsyslog still active after expiry of guard "
|
||||
"period (endTO %lld, time now %lld) - initiating abort()\n",
|
||||
(long long) endTO, (long long) time(NULL));
|
||||
"period (strtTO %lld, endTO %lld, time now %lld, diff %lld) - initiating abort()\n",
|
||||
(long long) strtTO, (long long) endTO, (long long) time(NULL), (long long) (time(NULL) - strtTO));
|
||||
fflush(stderr);
|
||||
abort();
|
||||
}
|
||||
|
||||
@ -9,6 +9,7 @@ main_queue(queue.filename="mainq"
|
||||
queue.type="disk"
|
||||
queue.maxDiskSpace="4m"
|
||||
queue.maxfilesize="1m"
|
||||
queue.timeoutshutdown="20000"
|
||||
queue.timeoutenqueue="300000"
|
||||
queue.lowwatermark="5000"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user