From: Frédéric Lécaille <flecai...@haproxy.com>

This patch makes at least this test pass on FreeBSD systems.
The regex to be matched with syslog message was too much Linux specific.
---
 reg-tests/checks/s00003.vtc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reg-tests/checks/s00003.vtc b/reg-tests/checks/s00003.vtc
index b57b965f..6ce10b0e 100644
--- a/reg-tests/checks/s00003.vtc
+++ b/reg-tests/checks/s00003.vtc
@@ -27,7 +27,7 @@ syslog S3 -level notice {
     recv
     expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Proxy be3 started"
     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 .* check duration: [[:digit:]]+ms, status: 0/1 DOWN."
 } -start
 
 syslog S4 -level notice {
-- 
2.11.0


Reply via email to