From 3644fb4b8aa0e44c9ce8e32e04c518a538e57224 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 25 Feb 2010 14:23:02 +0100 Subject: fully integrated parser fixes from v4.6.0 This also made necessary some parser test case updates. Acutally, the test case was wrong, but I did not notice that before. --- tests/testsuites/empty.parse1 | 2 +- tests/testsuites/malformed1.parse1 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/testsuites') diff --git a/tests/testsuites/empty.parse1 b/tests/testsuites/empty.parse1 index 87a84c37..86a86986 100644 --- a/tests/testsuites/empty.parse1 +++ b/tests/testsuites/empty.parse1 @@ -1,3 +1,3 @@ <14>Jan 6 2009 15:22:26 localhost -14,user,info,Jan 6 15:22:26,localhost,, +14,user,info,Jan 6 15:22:26,localhost,,, #Note: there is one space after localhost, but then \n! diff --git a/tests/testsuites/malformed1.parse1 b/tests/testsuites/malformed1.parse1 index 2d95170d..a8825fe8 100644 --- a/tests/testsuites/malformed1.parse1 +++ b/tests/testsuites/malformed1.parse1 @@ -1,5 +1,6 @@ <131>Oct 8 23:05:06 10.321.1.123 05",result_code=200,b -131,local0,err,Oct 8 23:05:06,10.321.1.123,05",result_code=200,b,05",result_code=200,b +131,local0,err,Oct 8 23:05:06,10.321.1.123,05",result_code=200,b,05",result_code=200,b, # a somewhat mangeld-with real-life sample of a malformed message # the key here is not what is being parsed, but that we do not abort! # NOTE: if a parser enhancement breaks the format, this is probably OK +# also note that the above message does NOT contain a MSG part -- cgit