]> git.netwichtig.de Git - user/henk/code/exim.git/commitdiff
Testsuite: fix munging for leading-space on PID
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 22 Dec 2022 14:58:57 +0000 (14:58 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Thu, 22 Dec 2022 18:46:22 +0000 (18:46 +0000)
test/runtest
test/stderr/0609
test/stderr/2201

index 38e03b3ac2ec762e037e0f15ff6455fafcd736a1..49789319bb64bfa887d69d84ebc6a2ca4da7099d 100755 (executable)
@@ -1076,12 +1076,10 @@ RESET_AFTER_EXTRA_LINE_READ:
                )
              /x;
 
-    # Lines with a leading pid
-    s/^(\d+)\s(?!(?:previous message|in\s|bytes remain in))/new_value($1, "p%s", \$next_pid) . ' '/e;
+    # Lines with a leading pid.  Only handle >= 4-digit PIDs to avoid converting SMTP respose codes
+    s/^(\s*\d{4,})\s(?!(?:previous message|in\s|bytes remain in|SMTP accept process running))/new_value($1, "p%s", \$next_pid) . ' '/e;
 
     # Debugging lines for Exim terminations and process-generation
-
-    s/^\s*\K(\d+)(?=\sexec\s.*\s-oPX$)/new_value($1, "%s", \$next_pid)/xe;
     next if /(?:postfork: | fork(?:ing|ed) for )/;
 
     # IP address lookups use gethostbyname() when IPv6 is not supported,
index 71f78c4dec8adcc4b6d9b6335619450ec69e0834..6768091382f12b2f5c0ee69315f7ff3bbae08335 100644 (file)
@@ -23,7 +23,7 @@ p1235 using ACL "delay4_accept"
 p1235 processing "accept" (TESTSUITE/test-config 24)
 p1235 check delay = 4s
 p1235 delay modifier requests 4-second delay
-p1236 SMTP accept process running
+1 SMTP accept process running
 Listening...
 p1235 accept: condition test succeeded in ACL "delay4_accept"
 p1235 end of ACL "delay4_accept": ACCEPT
@@ -32,23 +32,23 @@ p1235   SMTP connection from (test) [127.0.0.1] closed by QUIT
 p1235 >>>>>>>>>>>>>>>> Exim pid=p1235 (daemon-accept) terminating with rc=0 >>>>>>>>>>>>>>>>
 child p1235 ended: status=0x0
   normal exit, 0
-p1237 SMTP accept processes now running
+0 SMTP accept processes now running
 Listening...
 Connection request from 127.0.0.1 port sssss
 LOG: smtp_connection MAIN
   SMTP connection from [127.0.0.1] (TCP/IP connection count = 1)
-p1238 Process p1238 is handling incoming connection from [127.0.0.1]
-p1238 Process p1238 is ready for new message
-p1238 using ACL "delay4_accept"
-p1238 processing "accept" (TESTSUITE/test-config 24)
-p1238 check delay = 4s
-p1238 delay modifier requests 4-second delay
-p1238 delay cancelled by peer close
-p1238 accept: condition test succeeded in ACL "delay4_accept"
-p1238 end of ACL "delay4_accept": ACCEPT
-p1238 LOG: lost_incoming_connection MAIN
-p1238   unexpected disconnection while reading SMTP command from (test) [127.0.0.1] D=qqs
-p1238 >>>>>>>>>>>>>>>> Exim pid=p1238 (daemon-accept) terminating with rc=1 >>>>>>>>>>>>>>>>
-p1236 SMTP accept process running
+p1236 Process p1236 is handling incoming connection from [127.0.0.1]
+p1236 Process p1236 is ready for new message
+p1236 using ACL "delay4_accept"
+p1236 processing "accept" (TESTSUITE/test-config 24)
+p1236 check delay = 4s
+p1236 delay modifier requests 4-second delay
+p1236 delay cancelled by peer close
+p1236 accept: condition test succeeded in ACL "delay4_accept"
+p1236 end of ACL "delay4_accept": ACCEPT
+p1236 LOG: lost_incoming_connection MAIN
+p1236   unexpected disconnection while reading SMTP command from (test) [127.0.0.1] D=qqs
+p1236 >>>>>>>>>>>>>>>> Exim pid=p1236 (daemon-accept) terminating with rc=1 >>>>>>>>>>>>>>>>
+1 SMTP accept process running
 SIGTERM/SIGINT seen
 >>>>>>>>>>>>>>>> Exim pid=p1234 (daemon) terminating with rc=0 >>>>>>>>>>>>>>>>
index 07b9ac520e94dca4995beee08d6fa5a71a475d4a..dfc55b9a8eae3cc8412ff3fdae8cb5aa26857412 100644 (file)
@@ -213,7 +213,7 @@ Listening...
 Connection request from 127.0.0.1 port sssss
 p1238 Process p1238 is handling incoming connection from [127.0.0.1]
 p1238 Process p1238 is ready for new message
-p1240 SMTP accept process running
+1 SMTP accept process running
 Listening...
 p1238 dnslists check: rbl.test.ex/V4NET.11.12.14
 p1238 new DNS lookup for 14.12.11.V4NET.rbl.test.ex