summaryrefslogtreecommitdiffstats
path: root/tests/testsuites
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-17 16:39:18 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-17 16:39:18 +0100
commit679434312c20d9651faff26b8b3a5ab203be7ff3 (patch)
tree105bf490b92b0033e3f8c2a5e070136d40337741 /tests/testsuites
parentba0f23182a55b26b2265d2138c707cbc7ddbb72e (diff)
downloadrsyslog-679434312c20d9651faff26b8b3a5ab203be7ff3.tar.gz
rsyslog-679434312c20d9651faff26b8b3a5ab203be7ff3.tar.xz
rsyslog-679434312c20d9651faff26b8b3a5ab203be7ff3.zip
added test to check for deadlock condition in async-written files
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_deadlock.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/testsuites/asynwr_deadlock.conf b/tests/testsuites/asynwr_deadlock.conf
new file mode 100644
index 00000000..b3a052df
--- /dev/null
+++ b/tests/testsuites/asynwr_deadlock.conf
@@ -0,0 +1,21 @@
+# simple async writing test
+# rgerhards, 2010-03-09
+$IncludeConfig diag-common.conf
+
+$ModLoad ../plugins/imtcp/.libs/imtcp
+$MainMsgQueueTimeoutShutdown 10000
+$InputTCPServerRun 13514
+
+$template outfmt,"%msg:F,58:2%\n"
+$template dynfile,"rsyslog.out.log" # trick to use relative path names!
+
+$OMFileFlushOnTXEnd on
+$OMFileFlushInterval 10
+$OMFileFlushIOBufferSize 10k
+#:msg, contains, "msgnum:" ?dynfile;outfmt
+:msg, contains, "msgnum:" ./rsyslog.out.log;outfmt
+
+$OMFileFlushOnTXEnd on
+$OMFileFlushInterval 10
+$OMFileFlushIOBufferSize 10k
+#:msg, contains, "msgnum:" ./rsyslog.out.2.log;outfmt