mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-22 20:26:17 +01:00
build: Drop MALLOC_PERTURB_ from test environments
It’s set already by Meson, to an actually random value. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
6b65b721e7
commit
1b377e6574
@ -231,15 +231,11 @@ if installed_tests_enabled
|
|||||||
install_subdir('time-zones', install_dir : installed_tests_execdir)
|
install_subdir('time-zones', install_dir : installed_tests_execdir)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Not entirely random of course, but at least it changes over time
|
|
||||||
random_number = minor_version + meson.version().split('.').get(1).to_int()
|
|
||||||
|
|
||||||
test_env = environment()
|
test_env = environment()
|
||||||
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||||
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||||
test_env.set('G_DEBUG', 'gc-friendly')
|
test_env.set('G_DEBUG', 'gc-friendly')
|
||||||
test_env.set('MALLOC_CHECK_', '2')
|
test_env.set('MALLOC_CHECK_', '2')
|
||||||
test_env.set('MALLOC_PERTURB_', '@0@'.format(random_number % 256))
|
|
||||||
|
|
||||||
test_deps = [libm, thread_dep, libglib_dep]
|
test_deps = [libm, thread_dep, libglib_dep]
|
||||||
test_cargs = ['-DG_LOG_DOMAIN="GLib"', '-UG_DISABLE_ASSERT']
|
test_cargs = ['-DG_LOG_DOMAIN="GLib"', '-UG_DISABLE_ASSERT']
|
||||||
|
@ -41,7 +41,6 @@ test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
|||||||
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||||
test_env.set('G_DEBUG', 'gc-friendly')
|
test_env.set('G_DEBUG', 'gc-friendly')
|
||||||
test_env.set('MALLOC_CHECK_', '2')
|
test_env.set('MALLOC_CHECK_', '2')
|
||||||
test_env.set('MALLOC_PERTURB_', '@0@'.format(random_number % 256))
|
|
||||||
|
|
||||||
test_deps = [libm, thread_dep, libglib_dep, libgmodule_dep]
|
test_deps = [libm, thread_dep, libglib_dep, libgmodule_dep]
|
||||||
test_cargs = ['-DG_LOG_DOMAIN="GModule"', '-UG_DISABLE_ASSERT']
|
test_cargs = ['-DG_LOG_DOMAIN="GModule"', '-UG_DISABLE_ASSERT']
|
||||||
|
@ -109,15 +109,11 @@ python_tests = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
# FIXME: put common bits of test environment() in one location
|
# FIXME: put common bits of test environment() in one location
|
||||||
# Not entirely random of course, but at least it changes over time
|
|
||||||
random_number = minor_version + meson.version().split('.').get(1).to_int()
|
|
||||||
|
|
||||||
test_env = environment()
|
test_env = environment()
|
||||||
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||||
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||||
test_env.set('G_DEBUG', 'gc-friendly')
|
test_env.set('G_DEBUG', 'gc-friendly')
|
||||||
test_env.set('MALLOC_CHECK_', '2')
|
test_env.set('MALLOC_CHECK_', '2')
|
||||||
test_env.set('MALLOC_PERTURB_', '@0@'.format(random_number % 256))
|
|
||||||
|
|
||||||
test_deps = [libm, thread_dep, libglib_dep, libgobject_dep]
|
test_deps = [libm, thread_dep, libglib_dep, libgobject_dep]
|
||||||
test_cargs = ['-DG_LOG_DOMAIN="GLib-GObject"', '-UG_DISABLE_ASSERT']
|
test_cargs = ['-DG_LOG_DOMAIN="GLib-GObject"', '-UG_DISABLE_ASSERT']
|
||||||
|
@ -1,14 +1,10 @@
|
|||||||
# tests
|
# tests
|
||||||
|
|
||||||
# Not entirely random of course, but at least it changes over time
|
|
||||||
random_number = minor_version + meson.version().split('.').get(1).to_int()
|
|
||||||
|
|
||||||
test_env = environment()
|
test_env = environment()
|
||||||
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||||
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||||
test_env.set('G_DEBUG', 'gc-friendly')
|
test_env.set('G_DEBUG', 'gc-friendly')
|
||||||
test_env.set('MALLOC_CHECK_', '2')
|
test_env.set('MALLOC_CHECK_', '2')
|
||||||
test_env.set('MALLOC_PERTURB_', '@0@'.format(random_number % 256))
|
|
||||||
|
|
||||||
test_cargs = ['-DG_LOG_DOMAIN="GLib"', '-UG_DISABLE_ASSERT']
|
test_cargs = ['-DG_LOG_DOMAIN="GLib"', '-UG_DISABLE_ASSERT']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user