From 33f53aeb5061cb64aabdaa181632e080f4f4d898 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 13 Aug 2009 18:29:59 +0200 Subject: [PATCH] tests: increase likelihood that heap abuse triggers failure * regressions/Makefile.am (TESTS_ENVIRONMENT): Always set MALLOC_PERTURB_ to a random value in 1..255. --- regressions/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) 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" -- 1.8.3.1