tests: enable sasl
[awesomized/libmemcached] / tests / libmemcached-1.0 / sasl.cc
index 9b39852801125987c5a1cbee4e37d294a37cf288..44d0f31fbad57d383266ffa6ea3d7cd66d90a397 100644 (file)
@@ -47,10 +47,6 @@ using namespace libtest;
 
 static test_return_t pre_sasl(memcached_st *)
 {
-  SKIP_IF(true);
-#if 0
-  SKIP_IF_(true, "currently we are not testing sasl support");
-#endif
   SKIP_IF(LIBMEMCACHED_WITH_SASL_SUPPORT == 0);
 
   return TEST_SUCCESS;
@@ -64,6 +60,7 @@ static test_return_t pre_sasl(memcached_st *)
  */
 static test_return_t sasl_auth_test(memcached_st *memc)
 {
+#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
   if (LIBMEMCACHED_WITH_SASL_SUPPORT)
   {
     test_compare(MEMCACHED_SUCCESS, memcached_set(memc, "foo", 3, "bar", 3, (time_t)0, (uint32_t)0));
@@ -80,6 +77,9 @@ static test_return_t sasl_auth_test(memcached_st *memc)
     memcached_quit(memc);
     return TEST_SUCCESS;
   }
+#else
+  (void)memc;
+#endif
 
   return TEST_SKIPPED;
 }