mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 01:30:42 +01:00
Note that, as it looks, the directive was already broken in previous v5 versions. So while I solved what looked like a (intentional) regression from the performance tuning, I actually solved a previous regression as well ;) I have also added new test cases to the testbench in order to capture such problems in the future. This version does now look pretty good in shape.
20 lines
669 B
Plaintext
20 lines
669 B
Plaintext
# See main .sh file for info
|
|
# rgerhards, 2010-06-23
|
|
$IncludeConfig diag-common.conf
|
|
|
|
# omtesting provides the ability to cause "SUSPENDED" action state
|
|
$ModLoad ../plugins/omtesting/.libs/omtesting
|
|
|
|
$MainMsgQueueTimeoutShutdown 100000
|
|
$template outfmt,"%msg:F,58:2%\n"
|
|
|
|
:msg, contains, "msgnum:" :omtesting:fail 2 0
|
|
$ActionExecOnlyWhenPreviousIsSuspended on
|
|
& ./rsyslog.out.log;outfmt
|
|
# note that we MUST re-set PrevSusp, else it will remain active
|
|
# for all other actions as well (this tells us how bad the current
|
|
# config language is...). -- rgerhards, 2010-06-24
|
|
$ActionExecOnlyWhenPreviousIsSuspended off
|
|
|
|
:msg, contains, "msgnum:" ./rsyslog2.out.log;outfmt
|