[exim-dev] [Bug 1234] New: testsuite IPv6 tests u/s

Top Page

Reply to this message
Author: Jeremy Harris
To: exim-dev
Subject: [exim-dev] [Bug 1234] New: testsuite IPv6 tests u/s
------- You are receiving this mail because: -------
You are on the CC list for the bug.

           Summary: testsuite IPv6 tests u/s
           Product: Exim
           Version: 4.77
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Networking
        AssignedTo: nigel@???
        ReportedBy: jgh146exb@???
                CC: exim-dev@???

The double-colon rule for IPv6 addresses invalidated some REs
used for testing (a trailing colon, being a non-word char,
didn't result in a word-boundary).

Affects at least case 1001; possibly 1003 1006 1007 1009 too.

Suggested patch:

diff --git a/test/runtest b/test/runtest
index 2a8dd16..e71ee9f 100755
--- a/test/runtest
+++ b/test/runtest
@@ -560,9 +560,9 @@ RESET_AFTER_EXTRA_LINE_READ:
s/host\s\Q$parm_ipv4\E\s\[\Q$parm_ipv4\E\]/host ipv4.ipv4.ipv4.ipv4
ip6:ip6:ip6:ip6:ip6:ip6:ip6:ip6 [ip6:ip
- s/\b\Q$parm_ipv6\E\b/ip6:ip6:ip6:ip6:ip6:ip6:ip6:ip6/g;
+ s/(^|\W)\K\Q$parm_ipv6\E/ip6:ip6:ip6:ip6:ip6:ip6:ip6:ip6/g;
- s/\b\Q$parm_ipv6r\E\b/ip6-reverse/g;
+ s/(^|\W)\K\Q$parm_ipv6r\E/ip6-reverse/g;
s/^(\s+host\s\S+\s+\[\S+\]) +$/$1 /;

(We lose the trailing boundary assertion but I think it's good enough).

Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email