rsyslog/tests/arrayqueue.sh
Rainer Gerhards 8abfb8117f fix potential misadressing
found by clang static analyzer
2016-06-21 14:19:57 +02:00

20 lines
659 B
Bash
Executable File

#!/bin/bash
# Test for fixedArray queue mode
# added 2009-05-20 by rgerhards
# This file is part of the rsyslog project, released under ASL 2.0
echo ===============================================================================
echo \[arrayqueue.sh\]: testing queue fixedArray queue mode
. $srcdir/diag.sh init
. $srcdir/diag.sh startup arrayqueue.conf
# 40000 messages should be enough
. $srcdir/diag.sh injectmsg 0 40000
# terminate *now* (don't wait for queue to drain!)
kill `cat rsyslog.pid`
# now wait until rsyslog.pid is gone (and the process finished)
. $srcdir/diag.sh wait-shutdown
. $srcdir/diag.sh seq-check 0 39999
. $srcdir/diag.sh exit