From e3e52e6d9cca099d0a42ccce751684f629216032 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 26 May 2020 09:54:57 -0400 Subject: [PATCH] build: disable leak detection in address sanitizer build for tests as well Summary: The same principle we use for the build stage we use here for running our tests. Leak detection has just to many problems for us on the shutdown path that it makes no sense to use here. I am also bumping the evas timeout form the default 30s to 60 as I have been running into timeouts with asan enabled on my machine. This would not change anything on a default build. Depends on D11137 Reviewers: smohanty, bu5hm4n, raster, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11862 --- meson.build | 4 ++++ src/tests/evas/meson.build | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e3c869b..ed8f4f2 100644 --- a/meson.build +++ b/meson.build @@ -13,6 +13,10 @@ pkgconfig = import('pkgconfig') test_env = environment() test_env.set('EFL_RUN_IN_TREE', '1') +if get_option('b_sanitize') == 'address' + test_env.set('ASAN_OPTIONS', 'detect_leaks=0') +endif + version_arr = meson.project_version().split('.') version_major = version_arr[0] diff --git a/src/tests/evas/meson.build b/src/tests/evas/meson.build index 37935f1..fee57d9 100644 --- a/src/tests/evas/meson.build +++ b/src/tests/evas/meson.build @@ -33,5 +33,6 @@ evas_suite = executable('evas_suite', ) test('evas-suite', evas_suite, - env : test_env + env : test_env, + timeout: 60, ) -- 2.7.4