Skip to content

Commit a1ace74

Browse files
committed
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.
1 parent ead0b01 commit a1ace74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reg-tests/checks/4be_1srv_smtpchk_httpchk_layer47errors.vtc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ syslog S2 -level notice {
2424

2525
syslog S3 -level notice {
2626
recv
27-
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."
27+
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."
2828
} -start
2929

3030
syslog S4 -level notice {

0 commit comments

Comments
 (0)