[geocode-glib] build: Add perturbation variables to test environment



commit 14b9de61057a24041bde36e660497d041830775f
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Jan 6 23:30:23 2017 +0000

    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

 geocode-glib/Makefile.am |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/geocode-glib/Makefile.am b/geocode-glib/Makefile.am
index 03db567..224d007 100644
--- a/geocode-glib/Makefile.am
+++ b/geocode-glib/Makefile.am
@@ -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 \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]