[exim-dev] Possible runtest fix?

Top Page
Delete this message
Reply to this message
Author: Todd Lyons
Date:  
To: exim-dev
Subject: [exim-dev] Possible runtest fix?
I have Ubuntu and it uses a version of 'ls' that causes test 345 to
fail. Is the following addition to runtest too hackish or is it ok to
commit? It will fix Ignore the probable line wrapping at the end. I
attempted to make it reuse as much of the values as possible (year and
date) so that it would be somewhat flexible should anything in the
date setting process change in the future, and if the time is off
(normally it would be 00:00).

diff --git a/test/runtest b/test/runtest
index dac0277..e4951a6 100755
--- a/test/runtest
+++ b/test/runtest
@@ -450,6 +450,9 @@ RESET_AFTER_EXTRA_LINE_READ:
# Date of message arrival in spool file as shown by -Mvh
s/^\d{9,10}\s0$/ddddddddd 0/;

+ # Date of mailbox files, non-standard format
+ s/ 0 (2002)-05-(10) \d\d:\d\d / 0 May $2 $1 /;
+
# Date/time in mbx mailbox files
s/\d\d-\w\w\w-\d\d\d\d\s\d\d:\d\d:\d\d\s[-+]\d\d\d\d,/06-Sep-1999
15:52:48 +0100,/gx;


...Todd
--
Always code as if the guy who ends up maintaining your code will be a
violent psychopath who knows where you live. -- Martin Golding