X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fcomparison.cc;h=4a1d99a301a5b2cfc63010b277e0e03cb0126935;hb=99332db60646cb1b06a61d1636eddbbf0b5d0b40;hp=b670326c65b35837a82c8a01b6491bf201a1af91;hpb=9139975f5fe7895259645117b1e0e9a6cb9c27cc;p=awesomized%2Flibmemcached diff --git a/libtest/comparison.cc b/libtest/comparison.cc index b670326c..4a1d99a3 100644 --- a/libtest/comparison.cc +++ b/libtest/comparison.cc @@ -34,11 +34,21 @@ * */ -#include +#include "mem_config.h" #include namespace libtest { +bool jenkins_is_caller(void) +{ + if (bool(getenv("JENKINS_HOME"))) + { + return true; + } + + return false; +} + bool valgrind_is_caller(void) { if (bool(getenv("TESTS_ENVIRONMENT")) and strstr(getenv("TESTS_ENVIRONMENT"), "valgrind")) @@ -56,6 +66,11 @@ bool gdb_is_caller(void) return true; } + if (bool(getenv("LIBTEST_IN_GDB"))) + { + return true; + } + return false; }