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