X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fvalgrind.h;h=effeddc1faeeae30d3801e7ccb2868db4cffe0f5;hb=d40388104245a17f257e39f72ae84967ce210aa7;hp=9d9e8bac88ab2b82f03b6f011808713f11e3bd3b;hpb=3166705c1046e69f9c21b641120dc839f39b0e25;p=awesomized%2Flibmemcached diff --git a/libtest/valgrind.h b/libtest/valgrind.h index 9d9e8bac..effeddc1 100644 --- a/libtest/valgrind.h +++ b/libtest/valgrind.h @@ -38,14 +38,14 @@ static inline bool valgrind_is_caller(void) { - if (getenv("TESTS_ENVIRONMENT") && strstr(getenv("TESTS_ENVIRONMENT"), "valgrind")) + if (getenv("LOG_COMPILER") && strstr(getenv("LOG_COMPILER"), "valgrind")) { - if (strstr(getenv("TESTS_ENVIRONMENT"), "--tool") == NULL) + if (strstr(getenv("LOG_COMPILER"), "--tool") == NULL) { return true; } - if (strstr(getenv("TESTS_ENVIRONMENT"), "--tool=memcheck")) + if (strstr(getenv("LOG_COMPILER"), "--tool=memcheck")) { return true; }