Different libc implementations may have different string representations
for the same errno. Service shutdown routines verify that no
*enexpected* warnings are seen in service logs. This makes the test case
fail because a slightly different warning is observed.

This patch makes the test case gracefully handle the musl libc
representation.

Signed-off-by: Ihar Hrachyshka <[email protected]>
---
 tests/ovsdb-server.at | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/ovsdb-server.at b/tests/ovsdb-server.at
index ca6e931be..d9389e12f 100644
--- a/tests/ovsdb-server.at
+++ b/tests/ovsdb-server.at
@@ -2902,8 +2902,11 @@ AT_CHECK([uuidfilt monitor.stdout | sed '/^$/d'], [0], 
[dnl
 <8> delete 4 four
 <9> insert 4 four
 ])
-OVSDB_SERVER_SHUTDOWN(["/Address already in use/d"])
-OVSDB_SERVER_SHUTDOWN2(["/Address already in use/d"])
+
+dnl glibc returns 'Address already in use' error message
+dnl musl returns 'Address in use' error message
+OVSDB_SERVER_SHUTDOWN(["/Address \(already \)*in use/d"])
+OVSDB_SERVER_SHUTDOWN2(["/Address \(already \)*in use/d"])
 
 dnl Starting a replay.
 AT_CHECK([ovsdb-server --replay=./replay_dir                      dnl
-- 
2.50.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to