Don't use $RANDOM if the shell doesn't have it. (#346373, Thomas Klausner)

* tests/Makefile.am: Don't use $RANDOM if the shell doesn't
        have it.  (#346373, Thomas Klausner)
This commit is contained in:
Matthias Clasen
2006-12-18 05:02:37 +00:00
parent 5e287750f7
commit 81aee2e13e
2 changed files with 13 additions and 1 deletions

View 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)