]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: relax strerror matching to avoid a failure on libmusl
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2024 19:26:46 +0000 (20:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2024 19:26:46 +0000 (20:26 +0100)
The regtest4be_1srv_smtpchk_httpchk_layer47errors.vtc fails on musl
because it reports "Network unreachable" for -EUNREACH while the
check matches "Network is unreachable" as on other OSes. Let's just
replace " is" with ".*". It now works on both glibc and musl.

reg-tests/checks/4be_1srv_smtpchk_httpchk_layer47errors.vtc

index 3d3649125fe7b240e7ebe2f60bc9f14587b69888..58ee9497565f0f869a370592f837964bb9c10e78 100644 (file)
@@ -24,7 +24,7 @@ syslog S2 -level notice {
 
 syslog S3 -level notice {
     recv
-    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be3/srv3 failed.+reason: Layer4 connection problem.+info: \"General socket error \\(Network is unreachable\\)\".+check duration: [[:digit:]]+ms.+status: 0/1 DOWN."
+    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be3/srv3 failed.+reason: Layer4 connection problem.+info: \"General socket error \\(Network.* unreachable\\)\".+check duration: [[:digit:]]+ms.+status: 0/1 DOWN."
 } -start
 
 syslog S4 -level notice {