1 #define CATCH_CONFIG_RUNNER
2 #include "lib/catch.hpp"
3 #include "mem_config.h"
7 # define SET_ENV(n, k, v) setenv(k, v, 0);
9 # define SET_ENV(n, k, v) static char n ## _env[] = k "=" v; putenv(n ## _env)
12 int main(int argc
, char *argv
[]) {
15 SET_ENV(asan
, "ASAN_OPTIONS", "halt_on_error=0")
18 #if LIBMEMCACHED_WITH_SASL_SUPPORT
19 SET_ENV(sasl_pwdb
, "MEMCACHED_SASL_PWDB", LIBMEMCACHED_WITH_SASL_PWDB
);
20 SET_ENV(sasl_conf
, "SASL_CONF_PATH", LIBMEMCACHED_WITH_SASL_CONF
);
23 return Catch::Session().run(argc
, argv
);