Don't use $RANDOM if the shell doesn't have it. (#346373, Thomas Klausner)
authorMatthias Clasen <matthiasc@src.gnome.org>
Mon, 18 Dec 2006 05:02:37 +0000 (05:02 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 18 Dec 2006 05:02:37 +0000 (05:02 +0000)
        * tests/Makefile.am: Don't use $RANDOM if the shell doesn't
        have it.  (#346373, Thomas Klausner)

ChangeLog
tests/Makefile.am

index 8929243..6479e7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * tests/Makefile.am: Don't use $RANDOM if the shell doesn't
+       have it.  (#346373, Thomas Klausner)
+
 2006-12-17  Behdad Esfahbod  <behdad@gnome.org>
 
        * glib/gstring.c: Improve docs about string functions taking a
@@ -5,6 +10,13 @@
 
 2006-12-17  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gconvert.c:
+       * glib/gutf8.c (_g_charset_get_aliases): Put the G_GNUC_INTERNAL
+       where gcc doesn't complain about it.
+
+       * glib/ghash.c: Make ref_count an int to avoid compiler
+       warnings.
+
        * configure.in: Use AC_LANG_SOURCE for the clock test.
        
        * glib/gthreadpool.h:
index 5128f60..affb6b1 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 \
-       MALLOC_PERTURB_=$$(($$RANDOM % 256))
+       if test "$$RANDOM" != "" ; then MALLOC_PERTURB_=$$(($$RANDOM % 256)); fi
 
 progs_ldadd = $(EFENCE) $(libglib) $(EFENCE)
 thread_ldadd = $(libgthread) $(G_THREAD_LIBS) $(progs_ldadd)