Mercurial > hg > octave-jordi > gnulib-hg
changeset 16155:692de13f0c43
tests: Avoid spurious error message on platforms without mktemp program.
* tests/init.sh (mktempd_): Run mktemp in a subcommand.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 05 Dec 2011 02:58:55 +0100 |
parents | 03dcd25a20a4 |
children | 034184e9b5ea |
files | ChangeLog tests/init.sh |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-12-04 Bruno Haible <bruno@clisp.org> + Jim Meyering <meyering@redhat.com> + + tests: Avoid spurious error message on platforms without mktemp program. + * tests/init.sh (mktempd_): Run mktemp in a subcommand. + 2011-12-04 Bruno Haible <bruno@clisp.org> sethostname: Fix documentation.
--- a/tests/init.sh +++ b/tests/init.sh @@ -521,7 +521,7 @@ esac # First, try to use mktemp. - d=`unset TMPDIR; mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \ + d=`unset TMPDIR; { mktemp -d -t -p "$destdir_" "$template_"; } 2>/dev/null` \ || fail=1 # The resulting name must be in the specified directory.