summaryrefslogtreecommitdiffstats
path: root/tests/testsuites
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-17 18:11:03 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-17 18:11:03 +0100
commit5c7225b77636b5f8231ccb0edc61fb7d68eb752b (patch)
treef2f964db77dbb16d219135e38acf736301780f69 /tests/testsuites
parent679434312c20d9651faff26b8b3a5ab203be7ff3 (diff)
downloadrsyslog-5c7225b77636b5f8231ccb0edc61fb7d68eb752b.tar.gz
rsyslog-5c7225b77636b5f8231ccb0edc61fb7d68eb752b.tar.xz
rsyslog-5c7225b77636b5f8231ccb0edc61fb7d68eb752b.zip
added test for deadlock with dynafile writing and cache exhaustion
Note that this introduces a test case that breaks the current code. This commit does NOT yet provide the necessary code patch. Thus "make check" does currently hang.
Diffstat (limited to 'tests/testsuites')
-rw-r--r--tests/testsuites/asynwr_deadlock2.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/testsuites/asynwr_deadlock2.conf b/tests/testsuites/asynwr_deadlock2.conf
new file mode 100644
index 00000000..c3eecae3
--- /dev/null
+++ b/tests/testsuites/asynwr_deadlock2.conf
@@ -0,0 +1,15 @@
+# rgerhards, 2010-03-17
+$IncludeConfig diag-common.conf
+
+$ModLoad ../plugins/imtcp/.libs/imtcp
+$MainMsgQueueTimeoutShutdown 10000
+$InputTCPServerRun 13514
+
+$template outfmt,"%msg:F,58:3%,%msg:F,58:4%,%msg:F,58:5%\n"
+$template dynfile,"rsyslog.out.%msg:F,58:2%.log" # use multiple dynafiles
+
+$OMFileFlushOnTXEnd on
+$OMFileFlushInterval 10
+$OMFileIOBufferSize 10k
+$DynaFileCacheSize 4
+local0.* ?dynfile;outfmt