Try a different fix for bug 346373.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 18 Dec 2006 14:50:36 +0000 (14:50 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 18 Dec 2006 14:50:36 +0000 (14:50 +0000)
2006-12-18  Matthias Clasen  <mclasen@redhat.com>

        * tests/Makefile.am: Try a different fix for bug 346373.

ChangeLog
tests/Makefile.am

index 9d2cd95..b913452 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-12-18  Matthias Clasen  <mclasen@redhat.com>
 
+       * tests/Makefile.am: Try a different fix for bug 346373.
+
+2006-12-18  Matthias Clasen  <mclasen@redhat.com>
+
        Fix bug 161288:
 
        * configure.in: Check for wcslen.
index affb6b1..601d958 100644 (file)
@@ -121,7 +121,7 @@ TESTS = $(test_programs) $(test_scripts)
 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
        LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
        MALLOC_CHECK_=2 \
-       if test "$$RANDOM" != "" ; then MALLOC_PERTURB_=$$(($$RANDOM % 256)); fi
+        MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
 
 progs_ldadd = $(EFENCE) $(libglib) $(EFENCE)
 thread_ldadd = $(libgthread) $(G_THREAD_LIBS) $(progs_ldadd)