X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fcomparison.cc;h=46aabe78973b31aa02da038dcd61c835551a5efb;hb=9065046a3fd404f72fb090cb0da65cfa8443032f;hp=b670326c65b35837a82c8a01b6491bf201a1af91;hpb=47f45992107361ad58c170bdf78fdc92523fab06;p=awesomized%2Flibmemcached diff --git a/libtest/comparison.cc b/libtest/comparison.cc index b670326c..46aabe78 100644 --- a/libtest/comparison.cc +++ b/libtest/comparison.cc @@ -34,11 +34,21 @@ * */ -#include +#include "libtest/yatlcon.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; }