From: Jim Meyering Date: Thu, 13 Aug 2009 16:29:59 +0000 (+0200) Subject: tests: increase likelihood that heap abuse triggers failure X-Git-Tag: 1.0.67~1 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=33f53aeb5061cb64aabdaa181632e080f4f4d898;p=libguestfs.git tests: increase likelihood that heap abuse triggers failure * regressions/Makefile.am (TESTS_ENVIRONMENT): Always set MALLOC_PERTURB_ to a random value in 1..255. --- diff --git a/regressions/Makefile.am b/regressions/Makefile.am index a51c76b..3279f95 100644 --- a/regressions/Makefile.am +++ b/regressions/Makefile.am @@ -40,7 +40,10 @@ SKIPPED_TESTS = \ FAILING_TESTS = \ test-qemudie-launchfail.sh +random_val := $(shell awk 'BEGIN{srand(); print 1+int(255*rand())}' < /dev/null) + TESTS_ENVIRONMENT = \ + MALLOC_PERTURB_=$(random_val) \ LD_LIBRARY_PATH=$(top_builddir)/src/.libs \ LIBGUESTFS_PATH=$(top_builddir)/appliance \ NOEXEC_CHECK="$(top_builddir)/src/.libs/libguestfs.so $(top_builddir)/daemon/guestfsd"