MCPcopy Create free account
hub / github.com/apple/foundationdb / GetRunningOnValgrind

Function GetRunningOnValgrind

contrib/stacktrace/stacktrace.amalgamation.cpp:2881–2891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2879}
2880
2881static int GetRunningOnValgrind(void) {
2882#ifdef RUNNING_ON_VALGRIND
2883 if (RUNNING_ON_VALGRIND)
2884 return 1;
2885#endif
2886 char* running_on_valgrind_str = getenv("RUNNING_ON_VALGRIND");
2887 if (running_on_valgrind_str) {
2888 return strcmp(running_on_valgrind_str, "0") != 0;
2889 }
2890 return 0;
2891}
2892
2893/* See the comments in dynamic_annotations.h */
2894int RunningOnValgrind(void) {

Callers 1

RunningOnValgrindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected