tests: increase likelihood that heap abuse triggers failure
authorJim Meyering <meyering@redhat.com>
Thu, 13 Aug 2009 16:29:59 +0000 (18:29 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 13 Aug 2009 16:37:30 +0000 (18:37 +0200)
* regressions/Makefile.am (TESTS_ENVIRONMENT): Always set
MALLOC_PERTURB_ to a random value in 1..255.

regressions/Makefile.am

index a51c76b..3279f95 100644 (file)
@@ -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"