aboutsummaryrefslogtreecommitdiffstats
path: root/main/hiredis/musl-test.patch
diff options
context:
space:
mode:
authoralpine-mips-patches <info@mobile-stream.com>2019-11-20 13:18:23 +0000
committerLeo <thinkabit.ukim@gmail.com>2019-11-21 10:00:08 +0100
commit73a1809fc2712ea3f47f1474cc5304716a2f8c03 (patch)
tree42d07e30aafbb439651e01024e02f4c5635a4947 /main/hiredis/musl-test.patch
parentb39b1960968562b613f510cb7ea5342958611040 (diff)
downloadaports-73a1809fc2712ea3f47f1474cc5304716a2f8c03.tar.gz
aports-73a1809fc2712ea3f47f1474cc5304716a2f8c03.tar.bz2
aports-73a1809fc2712ea3f47f1474cc5304716a2f8c03.tar.xz
main/hiredis: fix test #40 in disconnected environment
This adds musl's error string for EAI_AGAIN to the PASSED list in addition to existing glibc message for this error code.
Diffstat (limited to 'main/hiredis/musl-test.patch')
-rw-r--r--main/hiredis/musl-test.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/hiredis/musl-test.patch b/main/hiredis/musl-test.patch
index 37a7001396..400f4a9d56 100644
--- a/main/hiredis/musl-test.patch
+++ b/main/hiredis/musl-test.patch
@@ -1,10 +1,11 @@
--- hiredis-0.14.0/test.c
+++ hiredis-0.14.0_p/test.c
-@@ -439,6 +439,7 @@
+@@ -439,6 +439,8 @@
c = redisConnect((char*)"idontexist.test", 6379);
test_cond(c->err == REDIS_ERR_OTHER &&
(strcmp(c->errstr,"Name or service not known") == 0 ||
+ strcmp(c->errstr,"Name does not resolve") == 0 ||
++ strcmp(c->errstr,"Try again") == 0 ||
strcmp(c->errstr,"Can't resolve: idontexist.test") == 0 ||
strcmp(c->errstr,"nodename nor servname provided, or not known") == 0 ||
strcmp(c->errstr,"No address associated with hostname") == 0 ||