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: stable/20111211~6 X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=b3a93d27e57e0494d3140e6c62c9e621e0ea90c8 tests: Avoid spurious error message on platforms without mktemp program. * tests/init.sh (mktempd_): Run mktemp in a subcommand. (cherry picked from commit c69114d48295481373ee197c72214877b909414e) --- diff --git a/ChangeLog b/ChangeLog index cabef931a..9891f8eb4 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-03 Bruno Haible Fix module descriptions syntax. diff --git a/tests/init.sh b/tests/init.sh index e2f61190f..19c0cf4ae 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.