summaryrefslogtreecommitdiff
path: root/pcr/hiredis/hiredis-fix-tests.patch
blob: 51e49bf71772555a0e63c8735a372c34da52914d (plain)
1
2
3
4
5
6
7
8
9
10
11
diff -ru hiredis-0.11.0.orig/test.c hiredis-0.11.0/test.c
--- hiredis-0.11.0.orig/test.c	2012-08-28 02:55:52.000000000 -0400
+++ hiredis-0.11.0/test.c	2014-03-02 17:49:24.396739767 -0500
@@ -286,6 +286,7 @@
     c = redisConnect((char*)"idontexist.local", 6379);
     test_cond(c->err == REDIS_ERR_OTHER &&
         (strcmp(c->errstr,"Name or service not known") == 0 ||
+	 strcmp(c->errstr,"Temporary failure in name resolution") == 0 ||
          strcmp(c->errstr,"Can't resolve: idontexist.local") == 0));
     redisFree(c);