summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/samples.parse_invld_regex
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-02-08 18:35:27 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-02-08 18:35:27 +0100
commitb5e44445f9b0ac229b7802a46df33d0f2c4a2cd8 (patch)
treeb02cf55eb565ba8f88108d3d79bedf62305331f9 /tests/testsuites/samples.parse_invld_regex
parenteff5630ec0944b9fe10a50be7f236ac714807be7 (diff)
downloadrsyslog-b5e44445f9b0ac229b7802a46df33d0f2c4a2cd8.tar.gz
rsyslog-b5e44445f9b0ac229b7802a46df33d0f2c4a2cd8.tar.xz
rsyslog-b5e44445f9b0ac229b7802a46df33d0f2c4a2cd8.zip
added one more test to testbench
Diffstat (limited to 'tests/testsuites/samples.parse_invld_regex')
-rw-r--r--tests/testsuites/samples.parse_invld_regex16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/testsuites/samples.parse_invld_regex b/tests/testsuites/samples.parse_invld_regex
new file mode 100644
index 00000000..9ac2c3aa
--- /dev/null
+++ b/tests/testsuites/samples.parse_invld_regex
@@ -0,0 +1,16 @@
+# New tests should be added to this file if there is no specific
+# reason for not doing that. Initially, we could only handle one test
+# case per file, but this restriction has been removed some time ago.
+# So it is less troublesome (and easier to overlook) to have all related
+# tests in a single file.
+# the actual message is not important. There is an error inside the conf
+# file, and all messages will trigger the same problem.
+# NOTE: it is correct that the "BAD REGULAR EXPRESSION" error message is
+# *NOT* run through the rest of the propety replace, in specific through
+# the CSV escaper. We do not do this because it could potentially lead
+# to an obfuscated error message, and thus making problems hard to find. As
+# this is a real error case, there is no problem in not obeying to the
+# configured format.
+# rgerhards, 2010-02-08
+<175>Feb 08 2008 23:47:31 hostname tag This is a message
+"2008-02-08T23:47:31+01:00", "hostname", "tag", **NO MATCH** **BAD REGULAR EXPRESSION**, "7", " This is a message"