Handle missing $RANDOM
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 23 Mar 2007 06:27:58 +0000 (06:27 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 23 Mar 2007 06:27:58 +0000 (06:27 +0000)
svn path=/trunk/; revision=5435

ChangeLog
tests/gobject/Makefile.am

index 3c13588..15b9105 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-23  Matthias Clasen  <mclasen@redhat.com> 
+
+       * tests/gobject/Makefile.am: Handle $RANDOM missing.  (#356843,
+       Paul Jarc)
+
 2007-03-22  Matthias Clasen  <mclasen@redhat.com> 
 
        * glib/guniprop.c: Fix corner-cases of upper/lowercase conversion.
index 8acc7e2..d81c7e7 100644 (file)
@@ -66,7 +66,7 @@ TESTS = $(test_programs)
 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
        LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
        MALLOC_CHECK_=2 \
-       MALLOC_PERTURB_=$$(($$RANDOM % 256))
+       MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
 
 ########################################################################