From a1ace74b7e29d7a3c74433da15355a674117b2b3 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 21 Nov 2024 20:26:46 +0100 Subject: [PATCH] REGTESTS: relax strerror matching to avoid a failure on libmusl 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reg-tests/checks/4be_1srv_smtpchk_httpchk_layer47errors.vtc b/reg-tests/checks/4be_1srv_smtpchk_httpchk_layer47errors.vtc index 3d3649125f..58ee949756 100644 --- a/reg-tests/checks/4be_1srv_smtpchk_httpchk_layer47errors.vtc +++ b/reg-tests/checks/4be_1srv_smtpchk_httpchk_layer47errors.vtc @@ -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 {