mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-12 19:30:42 +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);
|
assert(abortTimeout != -1);
|
||||||
sigset_t sigSet;
|
sigset_t sigSet;
|
||||||
|
time_t strtTO;
|
||||||
time_t endTO;
|
time_t endTO;
|
||||||
|
|
||||||
/* block all signals except SIGTTIN and SIGSEGV */
|
/* 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));
|
dbgprintf("timeoutGuard: timeout %d seconds, time %lld\n", abortTimeout, (long long) time(NULL));
|
||||||
|
|
||||||
time(&endTO);
|
time(&strtTO);
|
||||||
endTO += abortTimeout;
|
endTO = strtTO + abortTimeout;
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
int to = endTO - time(NULL);
|
int to = endTO - time(NULL);
|
||||||
@ -633,8 +634,8 @@ timeoutGuard(ATTR_UNUSED void *arg)
|
|||||||
dbgprintf("timeoutGuard: sleep expired, aborting\n");
|
dbgprintf("timeoutGuard: sleep expired, aborting\n");
|
||||||
/* note: we use fprintf to stderr intentionally! */
|
/* note: we use fprintf to stderr intentionally! */
|
||||||
fprintf(stderr, "timeoutGuard: rsyslog still active after expiry of guard "
|
fprintf(stderr, "timeoutGuard: rsyslog still active after expiry of guard "
|
||||||
"period (endTO %lld, time now %lld) - initiating abort()\n",
|
"period (strtTO %lld, endTO %lld, time now %lld, diff %lld) - initiating abort()\n",
|
||||||
(long long) endTO, (long long) time(NULL));
|
(long long) strtTO, (long long) endTO, (long long) time(NULL), (long long) (time(NULL) - strtTO));
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,6 +9,7 @@ main_queue(queue.filename="mainq"
|
|||||||
queue.type="disk"
|
queue.type="disk"
|
||||||
queue.maxDiskSpace="4m"
|
queue.maxDiskSpace="4m"
|
||||||
queue.maxfilesize="1m"
|
queue.maxfilesize="1m"
|
||||||
|
queue.timeoutshutdown="20000"
|
||||||
queue.timeoutenqueue="300000"
|
queue.timeoutenqueue="300000"
|
||||||
queue.lowwatermark="5000"
|
queue.lowwatermark="5000"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user