Update util and fix a few cppcheck warnings.
[m6w6/libmemcached] / tests / libmemcached-1.0 / pool.cc
index 10450dac846897b7b79c4c18427aac0a89cb65df..6156ecad89acbdd2db7fa726b8bec9dfb3934a50 100644 (file)
@@ -55,6 +55,8 @@ using namespace libtest;
 #include <pthread.h>
 #include <poll.h>
 
+#include "libmemcached/instance.h"
+
 #ifndef __INTEL_COMPILER
 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
 #endif
@@ -493,6 +495,8 @@ test_return_t regression_bug_962815(memcached_st *memc)
     {
       Error << "poll() failed with:" << strerror(errno);
     }
+    test_zero(active_fd);
+
     set_running(false);
   }