summaryrefslogtreecommitdiffstats
path: root/contrib/apr-util/test/testmemcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/apr-util/test/testmemcache.c')
-rw-r--r--contrib/apr-util/test/testmemcache.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/apr-util/test/testmemcache.c b/contrib/apr-util/test/testmemcache.c
index 4947621..958afa66 100644
--- a/contrib/apr-util/test/testmemcache.c
+++ b/contrib/apr-util/test/testmemcache.c
@@ -433,6 +433,7 @@ static void test_memcache_multiget(abts_case * tc, void *data)
rv = apr_memcache_add_server(memcache, server);
ABTS_ASSERT(tc, "server add failed", rv == APR_SUCCESS);
+ values = apr_hash_make(p);
tdata = apr_hash_make(p);
create_test_hash(pool, tdata);
@@ -603,10 +604,10 @@ abts_suite *testmemcache(abts_suite * suite)
apr_status_t rv;
suite = ADD_SUITE(suite);
/* check for a running memcached on the typical port before
- * trying to run the tests. succeed silently if we don't find one.
+ * trying to run the tests. succeed if we don't find one.
*/
rv = check_mc();
- if(rv == APR_SUCCESS) {
+ if (rv == APR_SUCCESS) {
abts_run_test(suite, test_memcache_create, NULL);
abts_run_test(suite, test_memcache_user_funcs, NULL);
abts_run_test(suite, test_memcache_meta, NULL);
@@ -615,6 +616,11 @@ abts_suite *testmemcache(abts_suite * suite)
abts_run_test(suite, test_memcache_addreplace, NULL);
abts_run_test(suite, test_memcache_incrdecr, NULL);
}
+ else {
+ abts_log_message("Error %d occurred attempting to reach memcached "
+ "on %s:%d. Skipping apr_memcache tests...",
+ rv, HOST, PORT);
+ }
return suite;
}
OpenPOWER on IntegriCloud