X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Funittest.cc;h=0d50447783ce0c1278d6c07e1b072336ea7e4223;hb=6b83fd5838692b71a50710b9bc13680f9c586167;hp=0ec3e2ce404cdebb67fee4ed40751cadc70dec01;hpb=1b26fc8f15dfdb529a4a418322e489c990e564b4;p=m6w6%2Flibmemcached diff --git a/libtest/unittest.cc b/libtest/unittest.cc index 0ec3e2ce..0d504477 100644 --- a/libtest/unittest.cc +++ b/libtest/unittest.cc @@ -42,7 +42,7 @@ #include #endif -#if defined(LIBTEST_WITH_LIBGEARMAN_SUPPORT) && LIBTEST_WITH_LIBGEARMAN_SUPPORT +#if defined(HAVE_LIBGEARMAN) && HAVE_LIBGEARMAN #include #endif @@ -771,6 +771,16 @@ static test_return_t check_for_gearman(void *) { test_skip(true, HAVE_LIBGEARMAN); test_skip(true, has_gearmand()); +#if defined(HAVE_GEARMAND_BINARY) && HAVE_GEARMAND_BINARY + if (GEARMAND_BINARY) + { + test_zero(access(GEARMAND_BINARY, X_OK )); + } + else + { + return TEST_SKIPPED; + } +#endif testing_service= "gearmand";