[exim-cvs] Testsuite: fix stderr munging

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Testsuite: fix stderr munging
Gitweb: https://git.exim.org/exim.git/commitdiff/6471ea33fb1ddc212f1e51904ee09dcd5f64193c
Commit:     6471ea33fb1ddc212f1e51904ee09dcd5f64193c
Parent:     01446a56c76aa5ac3213a86f8992a2371a8301f3
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Nov 9 23:01:25 2019 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sat Nov 9 23:02:14 2019 +0000


    Testsuite: fix stderr munging


    Broken-by: 01446a56c7
---
 test/runtest     | 5 ++++-
 test/stderr/0438 | 1 -
 2 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/test/runtest b/test/runtest
index 97edbc2..6e9255b 100755
--- a/test/runtest
+++ b/test/runtest
@@ -1029,7 +1029,7 @@ RESET_AFTER_EXTRA_LINE_READ:

     s/(?<=^>>>>>>>>>>>>>>>> Exim pid=)\d+(?= terminating)/pppp/;
     s/^(proxy-proc \w{5}-pid) \d+$/$1 pppp/;
-    s/^(?:\d+)( exec .* -oPX)$/pppp$1/;
+    s/^(?:\s*\d+ )(exec .* -oPX)$/pppp $1/;


     # IP address lookups use gethostbyname() when IPv6 is not supported,
     # and gethostbyname2() or getipnodebyname() when it is.
@@ -1047,6 +1047,9 @@ RESET_AFTER_EXTRA_LINE_READ:
     next if /OpenSSL compile-time version: OpenSSL \d+[\.\da-z]+/;
     next if /OpenSSL runtime version: OpenSSL \d+[\.\da-z]+/;


+    # this is timing-dependent
+    next if /^OpenSSL: creating STEK$/;
+
     # drop lookups
     next if /^Lookups \(built-in\):/;
     next if /^Loading lookup modules from/;
diff --git a/test/stderr/0438 b/test/stderr/0438
index bb6ba3f..bac5bc1 100644
--- a/test/stderr/0438
+++ b/test/stderr/0438
@@ -54,7 +54,6 @@ LOG: MAIN
 set_process_info: pppp daemon(x.yz): no queue runs, listening for SMTP on port 1225
 daemon running with uid=EXIM_UID gid=EXIM_GID euid=EXIM_UID egid=EXIM_GID
 Listening...
-OpenSSL: creating STEK
 pppp exec TESTSUITE/eximdir/exim -DEXIM_PATH=TESTSUITE/eximdir/exim -DSERVER=server -C TESTSUITE/test-config -d=0xf7795cfd -oP TESTSUITE/spool/mypidfile -oPX
 search_tidyup called

>>>>>>>>>>>>>>>> Exim pid=pppp (daemon) terminating with rc=0 >>>>>>>>>>>>>>>>