diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-03-05 22:40:55 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-03-06 15:12:11 +0100 |
commit | 5ce6fb59a03108cfff11c71ca3f660fb2d8ea11e (patch) | |
tree | c7153bc70ea2932e60f172b34f2f2840ad4eeda9 | |
parent | 26f0d72a3f9b92574b16fc0348f79f16ed8021d0 (diff) | |
download | mariadb-git-5ce6fb59a03108cfff11c71ca3f660fb2d8ea11e.tar.gz |
disable LeakSanitizer for unit.dbug test
-rw-r--r-- | dbug/tests.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dbug/tests.c b/dbug/tests.c index 22a445fdeca..70424046bf4 100644 --- a/dbug/tests.c +++ b/dbug/tests.c @@ -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 |