mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 12:10:46 +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.
17 lines
765 B
Bash
Executable File
17 lines
765 B
Bash
Executable File
# we test the execonly if previous is suspended directive.
|
|
# This test checks if multiple backup actions can be defined.
|
|
# rgerhards, 2010-06-24
|
|
echo ===============================================================================
|
|
echo \[execonlywhenprevsuspended4.sh\]: test execonly..suspended multi backup action
|
|
source $srcdir/diag.sh init
|
|
source $srcdir/diag.sh startup execonlywhenprevsuspended4.conf
|
|
source $srcdir/diag.sh injectmsg 0 1000
|
|
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
source $srcdir/diag.sh wait-shutdown
|
|
source $srcdir/diag.sh seq-check 1 999
|
|
if [[ -s rsyslog2.out.log ]] ; then
|
|
echo failure: second output file has data where it should be empty
|
|
exit 1
|
|
fi ;
|
|
source $srcdir/diag.sh exit
|