Skip to content
Permalink
Browse files
disable LeakSanitizer for unit.dbug test
  • Loading branch information
vuvova committed Mar 6, 2019
1 parent 26f0d72 commit 5ce6fb5
Showing 1 changed file with 8 additions and 0 deletions.
@@ -86,3 +86,11 @@ int main (int argc __attribute__((unused)),
return 0;
#endif /* DBUG_OFF */
}

#ifdef __SANITIZE_ADDRESS__
/* Disable LeakSanitizer in this executable */
const char* __asan_default_options()
{
return "detect_leaks=0";
}
#endif

0 comments on commit 5ce6fb5

Please sign in to comment.