summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-04-09 16:03:14 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-04-09 16:03:14 +0200
commitc020cf51d14a9b80fbde9296ed4beb6d4c66e55e (patch)
tree508ae89b029eb76680e3ede976038d346fda3896
parentacd140f653b694b36c4532548cfd69772b8931b4 (diff)
downloadrsyslog-c020cf51d14a9b80fbde9296ed4beb6d4c66e55e.tar.gz
rsyslog-c020cf51d14a9b80fbde9296ed4beb6d4c66e55e.tar.bz2
rsyslog-c020cf51d14a9b80fbde9296ed4beb6d4c66e55e.zip
bugfix in testbench
I initially thought the testbench had found some regression, but it turned out that a bugfix fixed a situation that the testbench had (invalidly) relied on. I have now adapted the testbench to how things really need to be.
-rwxr-xr-xtests/queue-persist-drvr.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/queue-persist-drvr.sh b/tests/queue-persist-drvr.sh
index de597308..823fed6c 100755
--- a/tests/queue-persist-drvr.sh
+++ b/tests/queue-persist-drvr.sh
@@ -26,5 +26,10 @@ source $srcdir/diag.sh startup queue-persist.conf
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
./msleep 500
$srcdir/diag.sh wait-shutdown
-source $srcdir/diag.sh seq-check 0 4999
+# note: we need to permit duplicate messages, as due to the forced
+# shutdown some messages may be flagged as "unprocessed" while they
+# actually were processed. This is inline with rsyslog's philosophy
+# to better duplicate than loose messages. Duplicate messages are
+# permitted by the -d seq-check option.
+source $srcdir/diag.sh seq-check 0 4999 -d
source $srcdir/diag.sh exit