From: Bruno Haible Date: Mon, 5 Dec 2011 01:58:55 +0000 (+0100) Subject: tests: Avoid spurious error message on platforms without mktemp program. X-Git-Tag: v0.1~1371 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c69114d48295481373ee197c72214877b909414e;p=gnulib.git tests: Avoid spurious error message on platforms without mktemp program. * tests/init.sh (mktempd_): Run mktemp in a subcommand. --- diff --git a/ChangeLog b/ChangeLog index 0bd5d06293..0cfb578729 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-12-04 Bruno Haible + Jim Meyering + + tests: Avoid spurious error message on platforms without mktemp program. + * tests/init.sh (mktempd_): Run mktemp in a subcommand. + 2011-12-04 Bruno Haible sethostname: Fix documentation. diff --git a/tests/init.sh b/tests/init.sh index e2f61190fa..19c0cf4ae8 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -521,7 +521,7 @@ mktempd_ () 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.