X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fvalgrind.h;h=effeddc1faeeae30d3801e7ccb2868db4cffe0f5;hb=813bad3ab65eec288b4ce1588e32947891366e55;hp=9d9e8bac88ab2b82f03b6f011808713f11e3bd3b;hpb=42f0e0dc65cca45b48371328240b9fc312e2376d;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; }