summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-03-05 22:40:55 +0100
committerSergei Golubchik <serg@mariadb.org>2019-03-06 15:12:11 +0100
commit5ce6fb59a03108cfff11c71ca3f660fb2d8ea11e (patch)
treec7153bc70ea2932e60f172b34f2f2840ad4eeda9 /dbug
parent26f0d72a3f9b92574b16fc0348f79f16ed8021d0 (diff)
downloadmariadb-git-5ce6fb59a03108cfff11c71ca3f660fb2d8ea11e.tar.gz
disable LeakSanitizer for unit.dbug test
Diffstat (limited to 'dbug')
-rw-r--r--dbug/tests.c8
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