# HG changeset patch # User Bruno Haible # Date 1323050335 -3600 # Node ID 692de13f0c4320db62f23ce64ea23725798acfa1 # Parent 03dcd25a20a4aeec2bc12fd29d8323a7ec7b4cad 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 --- 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 --- 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.