mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 12:50:43 +01:00
add test for wtpShutdownAll assertion failure on stop
This commit is contained in:
parent
f0c89d0e13
commit
6d7c6fe631
@ -646,7 +646,8 @@ TESTS += \
|
||||
mmjsonparse-w-o-cookie-multi-spaces.sh
|
||||
if ENABLE_IMPSTATS
|
||||
TESTS += \
|
||||
mmjsonparse-invalid-containerName.sh
|
||||
mmjsonparse-invalid-containerName.sh \
|
||||
wtpShutdownAll-assertionFailure.sh
|
||||
endif
|
||||
if ENABLE_IMPTCP
|
||||
TESTS += \
|
||||
@ -1191,6 +1192,7 @@ EXTRA_DIST= \
|
||||
mmjsonparse-w-o-cookie-multi-spaces.sh \
|
||||
mmjsonparse_simple.sh \
|
||||
mmjsonparse-invalid-containerName.sh \
|
||||
wtpShutdownAll-assertionFailure.sh \
|
||||
imptcp-oversize-message-display.sh \
|
||||
imptcp-msg-truncation-on-number.sh \
|
||||
imptcp-msg-truncation-on-number2.sh \
|
||||
|
||||
29
tests/wtpShutdownAll-assertionFailure.sh
Executable file
29
tests/wtpShutdownAll-assertionFailure.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
# add 2018-04-19 by Pascal Withopf, released under ASL 2.0
|
||||
. $srcdir/diag.sh init
|
||||
. $srcdir/diag.sh generate-conf
|
||||
. $srcdir/diag.sh add-conf '
|
||||
$AbortOnUncleanConfig on
|
||||
$LocalHostName wtpshutdownall
|
||||
$PreserveFQDN on
|
||||
|
||||
global(
|
||||
workDirectory="test-spool"
|
||||
)
|
||||
|
||||
module(load="../plugins/mmjsonparse/.libs/mmjsonparse")
|
||||
module(load="../plugins/impstats/.libs/impstats" interval="300"
|
||||
resetCounters="on" format="cee" ruleset="metrics-impstat" log.syslog="on")
|
||||
|
||||
ruleset(name="metrics-impstat" queue.type="Direct"){
|
||||
action(type="omfile" file="test-spool/stats.log")
|
||||
}
|
||||
'
|
||||
. $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
|
||||
# This test only checks that rsyslog does not abort
|
||||
# so we don't need to check for output.
|
||||
|
||||
. $srcdir/diag.sh exit
|
||||
Loading…
x
Reference in New Issue
Block a user