Update to printout where things are going wrong.
authorBrian Aker <brian@tangent.org>
Sun, 23 Dec 2012 19:35:03 +0000 (14:35 -0500)
committerBrian Aker <brian@tangent.org>
Sun, 23 Dec 2012 19:35:03 +0000 (14:35 -0500)
tests/libmemcached-1.0/mem_functions.cc

index 068d5197414368f5a84b6f5befb3a105106dc541..046e543d4bc585c1c4a16fd1e09d8aa9580bcaa6 100644 (file)
@@ -4949,11 +4949,12 @@ test_return_t kill_HUP_TEST(memcached_st *original_memc)
                              0, 0));
   test_true_got(kill(pid, SIGHUP) == 0, strerror(errno));
 
-  test_compare(MEMCACHED_CONNECTION_FAILURE,
-               memcached_set(memc, 
-                             test_literal_param(__func__), // Keys
-                             test_literal_param(__func__), // Values
-                             0, 0));
+  memcached_return_t ret= memcached_set(memc, 
+                                        test_literal_param(__func__), // Keys
+                                        test_literal_param(__func__), // Values
+                                        0, 0);
+  Error << memcached_last_error_message(memc);
+  test_compare(MEMCACHED_CONNECTION_FAILURE, ret);
 
   memcached_free(memc);