[meson] Don't set MALLOC_PERTURB_ as it is already set by meson
This commit is contained in:
parent
e8808c1c20
commit
9bc792f416
|
@ -59,23 +59,18 @@ if conf.get('HAVE_GLIB', 0) == 1
|
||||||
# Default test running environment
|
# Default test running environment
|
||||||
env = environment()
|
env = environment()
|
||||||
env.set('MALLOC_CHECK_', '2')
|
env.set('MALLOC_CHECK_', '2')
|
||||||
env.set('MALLOC_PERTURB_', '63') # $$(($${RANDOM:-256} % 256))
|
|
||||||
env.set('G_DEBUG', 'gc-friendly')
|
env.set('G_DEBUG', 'gc-friendly')
|
||||||
env.set('G_SLICE', 'always-malloc')
|
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_SRCDIR', meson.current_source_dir())
|
||||||
env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||||
|
|
||||||
foreach source : tests
|
foreach source : tests
|
||||||
extra_c_args = []
|
|
||||||
test_name = source.split('.')[0]
|
test_name = source.split('.')[0]
|
||||||
exe = executable(test_name, source,
|
test(test_name, executable(test_name, source,
|
||||||
include_directories: [incconfig, incsrc],
|
include_directories: [incconfig, incsrc],
|
||||||
dependencies: deps,
|
dependencies: deps,
|
||||||
link_with: [libharfbuzz] + (source.contains('-subset') ? [libharfbuzz_subset] : []),
|
link_with: [libharfbuzz] + (source.contains('-subset') ? [libharfbuzz_subset] : []),
|
||||||
)
|
), env: env)
|
||||||
|
|
||||||
test(test_name, exe, env: env)
|
|
||||||
endforeach
|
endforeach
|
||||||
else
|
else
|
||||||
message('You need to have glib support enabled to run test/api tests')
|
message('You need to have glib support enabled to run test/api tests')
|
||||||
|
|
Loading…
Reference in New Issue