Package: src:hiredis Followup-For: Bug #770648 Dear Maintainer,
As already mentioned by David, you must not use network when building the package, even lo might not be available. The attached patch disables the network-based tests. PS: The pid-file location hardcoded to /tmp looks weird.. Maybe should be patched to use $CURDIR or a relatie path ? If you want me to sponsor that upload, please ping me. -- tobi -- System Information: Debian Release: jessie/sid APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
Description: Disable network-based tests As on the buildds no network is available, this patch disables the tests which are expect are working network Author: Tobias Frost <t...@debian.org> --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ Index: hiredis-0.11.0/test.c =================================================================== --- hiredis-0.11.0.orig/test.c +++ hiredis-0.11.0/test.c @@ -282,12 +282,16 @@ static void test_reply_reader(void) { static void test_blocking_connection_errors(void) { redisContext *c; +#if 0 test("Returns error when host cannot be resolved: "); 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,"Can't resolve: idontexist.local") == 0)); redisFree(c); +#else + test("SKIPPED: Returns error when host cannot be resolved\n"); +#endif /*test("Returns error when the port is not open: "); c = redisConnect((char*)"localhost", 1); @@ -634,11 +638,15 @@ int main(int argc, char **argv) { test_reply_reader(); test_blocking_connection_errors(); +#if 0 printf("\nTesting against TCP connection (%s:%d):\n", cfg.tcp.host, cfg.tcp.port); cfg.type = CONN_TCP; test_blocking_connection(cfg); test_blocking_io_errors(cfg); if (throughput) test_throughput(cfg); +#else + printf("\nSKIPPED: Testing against TCP connection\n"); +#endif printf("\nTesting against Unix socket connection (%s):\n", cfg.unix.path); cfg.type = CONN_UNIX;