X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2Fmain.cpp;h=34513e542375663a229227904aa71a8767dfcf42;hb=2e03aac9dfe046f9e4b6ca48cf87a4568c4f1030;hp=2908745b909ead26a9fda56ed1c2ed3d0afa3acc;hpb=9f262c9ea92d4869715ca6f534c80075a8310ac1;p=awesomized%2Flibmemcached diff --git a/test/main.cpp b/test/main.cpp index 2908745b..34513e54 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -1,24 +1,8 @@ #define CATCH_CONFIG_RUNNER #include "lib/catch.hpp" -#include "mem_config.h" -#include - -#if HAVE_SETENV -# define SET_ENV(n, k, v) setenv(k, v, 0); -#else // !HAVE_SETENV -# define SET_ENV(n, k, v) static char n ## _env[] = k "=" v; putenv(n ## _env) -#endif +#include "setup.hpp" int main(int argc, char *argv[]) { - -#if HAVE_ASAN - SET_ENV(asan, "ASAN_OPTIONS", "halt_on_error=0") -#endif - -#if LIBMEMCACHED_WITH_SASL_SUPPORT - SET_ENV(sasl_pwdb, "MEMCACHED_SASL_PWDB", LIBMEMCACHED_WITH_SASL_PWDB); - SET_ENV(sasl_conf, "SASL_CONF_PATH", LIBMEMCACHED_WITH_SASL_CONF); -#endif - + setup(argc, &argv); return Catch::Session().run(argc, argv); }