test: fix errstr matching for musl libc

This makes the tests pass on musl[1] based distros like Alpine Linux.

[1]: https://www.musl-libc.org/
This commit is contained in:
Eivind Uggedal 2019-05-14 07:29:26 +00:00
parent f5f855c912
commit 993af7710e
1 changed files with 1 additions and 0 deletions

1
test.c
View File

@ -450,6 +450,7 @@ static void test_blocking_connection_errors(void) {
c->err == REDIS_ERR_OTHER &&
(strcmp(c->errstr, "Name or service not known") == 0 ||
strcmp(c->errstr, "Can't resolve: " HIREDIS_BAD_DOMAIN) == 0 ||
strcmp(c->errstr, "Name does not resolve") == 0 ||
strcmp(c->errstr,
"nodename nor servname provided, or not known") == 0 ||
strcmp(c->errstr, "No address associated with hostname") == 0 ||