From 9bc792f416dddd4aabb99780c632010d97054f5d Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Tue, 24 Mar 2020 19:37:56 +0430 Subject: [PATCH] [meson] Don't set MALLOC_PERTURB_ as it is already set by meson --- test/api/meson.build | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/api/meson.build b/test/api/meson.build index 2f40a1fbf..da71b82ce 100644 --- a/test/api/meson.build +++ b/test/api/meson.build @@ -59,23 +59,18 @@ if conf.get('HAVE_GLIB', 0) == 1 # Default test running environment env = environment() env.set('MALLOC_CHECK_', '2') - env.set('MALLOC_PERTURB_', '63') # $$(($${RANDOM:-256} % 256)) env.set('G_DEBUG', 'gc-friendly') env.set('G_SLICE', 'always-malloc') - #env.set('srcdir', meson.current_source_dir()) Is it needed? env.set('G_TEST_SRCDIR', meson.current_source_dir()) env.set('G_TEST_BUILDDIR', meson.current_build_dir()) foreach source : tests - extra_c_args = [] test_name = source.split('.')[0] - exe = executable(test_name, source, + test(test_name, executable(test_name, source, include_directories: [incconfig, incsrc], dependencies: deps, link_with: [libharfbuzz] + (source.contains('-subset') ? [libharfbuzz_subset] : []), - ) - - test(test_name, exe, env: env) + ), env: env) endforeach else message('You need to have glib support enabled to run test/api tests')