Skip to content
Snippets Groups Projects
Commit 66563ae8 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[test] Set glibc's MALLOC_PERTURB to a known value

Otherwise meson will use a random value.
parent 31345b93
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,14 @@ tests = {
undef_ndebug = '-UNDEBUG'
test_dep = [thread_dep]
test_env = environment(
{
# Set glibc's MALLOC_PERTURB to 1. This means that newly allocated
# memory will be initialized with 0x01, and that free'ed memory
# will be set to 0xFE (I think).
'MALLOC_PERTURB_': '1',
}
)
foreach source, test_dict : tests
# TODO: Use meson fs (filesystem) module once meson >= 0.53 is in
......@@ -55,6 +63,7 @@ foreach source, test_dict : tests
test_exe,
is_parallel: test_dict.get('is_parallel', true),
suite: test_dict.get('test_suite', 'all'),
timeout: 60
timeout: 60,
env: test_env,
)
endforeach
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment