summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEivind Uggedal <eu@eju.no>2019-05-14 07:29:26 +0000
committerEivind Uggedal <eu@eju.no>2019-05-14 07:29:26 +0000
commit993af7710ef2f9e72b5bf2c27e15227bbcaf6a9c (patch)
tree821e372f37b7f488a9f56cfc1ae1eda4bd9c16c9
parentf5f855c91239706b173e2412cea301f4a3643e2d (diff)
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/
-rw-r--r--test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test.c b/test.c
index 4af99b2..05c5ee3 100644
--- a/test.c
+++ b/test.c
@@ -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 ||