build: disable leak detection in address sanitizer build for tests as well
authorStefan Schmidt <s.schmidt@samsung.com>
Tue, 26 May 2020 13:54:57 +0000 (09:54 -0400)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 26 May 2020 22:23:17 +0000 (07:23 +0900)
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
src/tests/evas/meson.build

index e3c869b..ed8f4f2 100644 (file)
@@ -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]
index 37935f1..fee57d9 100644 (file)
@@ -33,5 +33,6 @@ evas_suite = executable('evas_suite',
 )
 
 test('evas-suite', evas_suite,
-  env : test_env
+  env : test_env,
+  timeout: 60,
 )