X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fcomparison.cc;h=c0c21937f9512b08dc127916cf14bb0ae1a89e5f;hb=2eae87612891b9cd1920c4afa8515b208e12958d;hp=4a1d99a301a5b2cfc63010b277e0e03cb0126935;hpb=37c91080586edd50cc18f67600332cefe5e3aab0;p=awesomized%2Flibmemcached diff --git a/libtest/comparison.cc b/libtest/comparison.cc index 4a1d99a3..c0c21937 100644 --- a/libtest/comparison.cc +++ b/libtest/comparison.cc @@ -34,7 +34,7 @@ * */ -#include "mem_config.h" +#include "libtest/yatlcon.h" #include namespace libtest { @@ -49,19 +49,9 @@ bool jenkins_is_caller(void) return false; } -bool valgrind_is_caller(void) -{ - if (bool(getenv("TESTS_ENVIRONMENT")) and strstr(getenv("TESTS_ENVIRONMENT"), "valgrind")) - { - return true; - } - - return false; -} - bool gdb_is_caller(void) { - if (bool(getenv("TESTS_ENVIRONMENT")) and strstr(getenv("TESTS_ENVIRONMENT"), "gdb")) + if (bool(getenv("LOG_COMPILER")) and strstr(getenv("LOG_COMPILER"), "gdb")) { return true; } @@ -76,7 +66,7 @@ bool gdb_is_caller(void) bool helgrind_is_caller(void) { - if (bool(getenv("TESTS_ENVIRONMENT")) and strstr(getenv("TESTS_ENVIRONMENT"), "helgrind")) + if (bool(getenv("LOG_COMPILER")) and strstr(getenv("LOG_COMPILER"), "helgrind")) { return true; }