Commit 14b9de61 authored by Philip Withnall's avatar Philip Withnall
Browse files

build: Add perturbation variables to test environment

These should perturb the memory allocator settings randomly so that
memory management problems are more likely to be highlighted.

https://bugzilla.gnome.org/show_bug.cgi?id=756311
parent 65dc1831
......@@ -113,7 +113,10 @@ noinst_PROGRAMS = $(TESTS)
TESTS_ENVIRONMENT = \
G_TEST_SRCDIR="$(abs_srcdir)" \
G_TEST_BUILDDIR="$(abs_builddir)"
G_TEST_BUILDDIR="$(abs_builddir)" \
G_DEBUG=gc-friendly \
MALLOC_CHECK_=2 \
MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
test_gcglib_SOURCES = \
tests/geocode-nominatim-test.h \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment